diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2011-04-13 13:29:29 -0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-04-26 22:46:59 +0200 |
commit | f8fe67e12ebe3429ac5bb9b8e0be6d2e30cc1449 (patch) | |
tree | eb8ae34befeebd2122a39001c33f7eae42878a81 /toolchain/gcc/gcc-uclibc-4.x.mk | |
parent | 243e4edc748b26f9a713bc268e5b7a6ff7d15956 (diff) | |
download | buildroot-novena-f8fe67e12ebe3429ac5bb9b8e0be6d2e30cc1449.tar.gz buildroot-novena-f8fe67e12ebe3429ac5bb9b8e0be6d2e30cc1449.zip |
toolchain: add gcc 4.6.0
Add gcc 4.6.0 to the toolchain repertoire:
Target gcc is known to be broken in some scenarios.
This version is considered experimental so things may break.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/gcc/gcc-uclibc-4.x.mk')
-rw-r--r-- | toolchain/gcc/gcc-uclibc-4.x.mk | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk index 04b21e9f1..ebcca5352 100644 --- a/toolchain/gcc/gcc-uclibc-4.x.mk +++ b/toolchain/gcc/gcc-uclibc-4.x.mk @@ -53,6 +53,11 @@ else GCC_OPTSPACE=--enable-target-optspace endif +# gcc 4.6.x quadmath requires wchar +ifneq ($(BR2_TOOLCHAIN_BUILDROOT_WCHAR),y) +GCC_QUADMATH=--disable-libquadmath +endif + ############################################################# # # Setup some initial stuff @@ -107,24 +112,33 @@ ifeq ($(BR2_INSTALL_FORTRAN),y) GCC_TARGET_LANGUAGES:=$(GCC_TARGET_LANGUAGES),fortran endif +# GCC 4.x prerequisites GCC_WITH_HOST_GMP = --with-gmp=$(HOST_DIR)/usr GCC_WITH_HOST_MPFR = --with-mpfr=$(HOST_DIR)/usr ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) HOST_SOURCE += host-gmp-source host-mpfr-source endif GCC_HOST_PREREQ = host-gmp host-mpfr +GCC_TARGET_PREREQ += mpfr gmp +# GCC 4.5.x prerequisites ifeq ($(findstring x4.5.,x$(GCC_VERSION)),x4.5.) GCC_WITH_HOST_MPC = --with-mpc=$(HOST_DIR)/usr +GCC_TARGET_PREREQ += mpc ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) HOST_SOURCE += host-mpc-source endif GCC_HOST_PREREQ += host-mpc endif -GCC_TARGET_PREREQ += mpfr gmp -ifeq ($(findstring x4.5.,x$(GCC_VERSION)),x4.5.) +# GCC 4.6.x prerequisites +ifeq ($(findstring x4.6.,x$(GCC_VERSION)),x4.6.) +GCC_WITH_HOST_MPC = --with-mpc=$(HOST_DIR)/usr GCC_TARGET_PREREQ += mpc +ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) +HOST_SOURCE += host-mpc-source +endif +GCC_HOST_PREREQ += host-mpc endif ifeq ($(BR2_GCC_SHARED_LIBGCC),y) @@ -219,6 +233,7 @@ $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched $(BR2_CONFIGURE_DEVEL_SYSROOT) \ --disable-__cxa_atexit \ $(GCC_OPTSPACE) \ + $(GCC_QUADMATH) \ --with-gnu-ld \ --disable-shared \ --disable-libssp \ @@ -285,6 +300,7 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(BR2_CONFIGURE_DEVEL_SYSROOT) \ --disable-__cxa_atexit \ $(GCC_OPTSPACE) \ + $(GCC_QUADMATH) \ --with-gnu-ld \ --enable-shared \ --disable-libssp \ @@ -362,6 +378,7 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_SRC_DIR)/.patched $(GCC_STAGING_PREREQ) $(BR2_CONFIGURE_BUILD_TOOLS) \ --disable-__cxa_atexit \ $(GCC_OPTSPACE) \ + $(GCC_QUADMATH) \ --with-gnu-ld \ --disable-libssp \ --disable-multilib \ @@ -504,6 +521,8 @@ $(GCC_BUILD_DIR4)/.configured: $(GCC_BUILD_DIR4)/.prepared --enable-languages=$(GCC_TARGET_LANGUAGES) \ --with-gxx-include-dir=/usr/include/c++ \ --disable-__cxa_atexit \ + $(GCC_OPTSPACE) \ + $(GCC_QUADMATH) \ --with-gnu-ld \ --disable-libssp \ --disable-multilib \ |