Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 2014 23:08:04 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374341 - head/devel/arm-none-eabi-gcc
Message-ID:  <201412082308.sB8N84NU013136@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Mon Dec  8 23:08:04 2014
New Revision: 374341
URL: https://svnweb.freebsd.org/changeset/ports/374341
QAT: https://qat.redports.org/buildarchive/r374341/

Log:
  Include libgcc.a and the crt*.o binaries. Fix up configure args to
  disable libstdcxx and multilib, as they are not needed. Add hacks to
  build gcc with clang. With these changes, we can now build u-boot with
  this compiler.
  
  Submitted by: ian@

Modified:
  head/devel/arm-none-eabi-gcc/Makefile
  head/devel/arm-none-eabi-gcc/pkg-plist

Modified: head/devel/arm-none-eabi-gcc/Makefile
==============================================================================
--- head/devel/arm-none-eabi-gcc/Makefile	Mon Dec  8 23:05:56 2014	(r374340)
+++ head/devel/arm-none-eabi-gcc/Makefile	Mon Dec  8 23:08:04 2014	(r374341)
@@ -4,8 +4,17 @@ PKGNAMEPREFIX=	arm-none-eabi-
 COMMENT=	GNU Compiler Collection for bare metal arm cross-development
 GCC_TARGET=	arm-none-eabi
 PLIST=	${.CURDIR}/pkg-plist
-CFLAGS+=	-fbracket-depth=512
 
 MASTERDIR=	${.CURDIR}/../powerpc64-gcc
 
 .include "${MASTERDIR}/Makefile"
+
+# U-Boot requires libgcc, crossbuild and install it.
+ALL_TARGET+=	all-target-libgcc
+INSTALL_TARGET+=	install-target-libgcc
+
+# libstdcxx won't build, but we don't need it or multiple float-abi libs.
+CONFIGURE_ARGS+=	--disable-libstdcxx --disable-multilib
+
+# The following is required for clang to bootstrap gcc.
+MAKE_ARGS+=	CXXFLAGS=-fbracket-depth=512

Modified: head/devel/arm-none-eabi-gcc/pkg-plist
==============================================================================
--- head/devel/arm-none-eabi-gcc/pkg-plist	Mon Dec  8 23:05:56 2014	(r374340)
+++ head/devel/arm-none-eabi-gcc/pkg-plist	Mon Dec  8 23:08:04 2014	(r374341)
@@ -7,6 +7,11 @@ bin/%%GCC_TARGET%%-gcc-ar
 bin/%%GCC_TARGET%%-gcc-nm
 bin/%%GCC_TARGET%%-gcc-ranlib
 bin/%%GCC_TARGET%%-gcov
+lib/gcc/%%GCC_TARGET%%/4.9.1/libgcc.a
+lib/gcc/%%GCC_TARGET%%/4.9.1/crtbegin.o
+lib/gcc/%%GCC_TARGET%%/4.9.1/crtend.o
+lib/gcc/%%GCC_TARGET%%/4.9.1/crti.o
+lib/gcc/%%GCC_TARGET%%/4.9.1/crtn.o
 lib/gcc/%%GCC_TARGET%%/4.9.1/include-fixed/README
 lib/gcc/%%GCC_TARGET%%/4.9.1/include-fixed/limits.h
 lib/gcc/%%GCC_TARGET%%/4.9.1/include-fixed/syslimits.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412082308.sB8N84NU013136>