diff options
Diffstat (limited to 'meta/packages/gcc/gcc-configure-common.inc')
-rw-r--r-- | meta/packages/gcc/gcc-configure-common.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/packages/gcc/gcc-configure-common.inc b/meta/packages/gcc/gcc-configure-common.inc index 3400296c2d..ab42bc5608 100644 --- a/meta/packages/gcc/gcc-configure-common.inc +++ b/meta/packages/gcc/gcc-configure-common.inc @@ -12,6 +12,12 @@ JAVA_sh3 ?= "" # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran' FORTRAN ?= ",f77" LANGUAGES ?= "c,c++${FORTRAN}${JAVA}" +# disable --enable-target-optspace for powerpc SPE +# at -Os libgcc.so.1 creates references into +# hidden symbols in libgcc.a which linker complains +# when linking shared libraries further in the build like (gnutls) + +OPTSPACE = "${@base_contains('TARGET_ARCH', 'powerpc', '', '--enable-target-optspace',d)}" EXTRA_OECONF_BASE ?= "" EXTRA_OECONF_PATHS ?= "" @@ -23,7 +29,6 @@ GCCMULTILIB = "--disable-multilib" EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ --with-gnu-ld \ --enable-shared \ - --enable-target-optspace \ --enable-languages=${LANGUAGES} \ --enable-threads=posix \ ${GCCMULTILIB} \ @@ -32,9 +37,11 @@ EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, --enable-symvers=gnu \ --enable-libstdcxx-pch \ --program-prefix=${TARGET_PREFIX} \ + ${OPTSPACE} \ ${EXTRA_OECONF_BASE} \ ${EXTRA_OECONF_FPU} \ - ${EXTRA_OECONF_PATHS}" + ${EXTRA_OECONF_PATHS} \ + ${@get_gcc_mips_plt_setting(bb, d)}" # Build uclibc compilers without cxa_atexit support EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" |