diff options
author | Warner Losh <imp@FreeBSD.org> | 2014-12-08 23:08:04 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2014-12-08 23:08:04 +0000 |
commit | def26a01da7ac2847a4dec99511a88c9ee64f819 (patch) | |
tree | 4627883061f11da11a3efd2c9639dc679ea95da9 /devel | |
parent | Fix problems introduced in r374261. (diff) |
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@
Notes
Notes:
svn path=/head/; revision=374341
Diffstat (limited to 'devel')
-rw-r--r-- | devel/arm-none-eabi-gcc/Makefile | 11 | ||||
-rw-r--r-- | devel/arm-none-eabi-gcc/pkg-plist | 5 |
2 files changed, 15 insertions, 1 deletions
diff --git a/devel/arm-none-eabi-gcc/Makefile b/devel/arm-none-eabi-gcc/Makefile index 075176da8d00..a0c9792d032f 100644 --- a/devel/arm-none-eabi-gcc/Makefile +++ b/devel/arm-none-eabi-gcc/Makefile @@ -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 diff --git a/devel/arm-none-eabi-gcc/pkg-plist b/devel/arm-none-eabi-gcc/pkg-plist index be00d5ba2f14..aec6bb23c7cb 100644 --- a/devel/arm-none-eabi-gcc/pkg-plist +++ b/devel/arm-none-eabi-gcc/pkg-plist @@ -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 |