From 1842635ee89b1ffb3b6fda2c9fecaff973900f0a Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Fri, 30 Jul 2010 14:05:16 -0700 Subject: gcc-4.5.0: import some ppc & mips fixes from oe recipes for ppc glibc build failes with -os (optimize for size) gcc option. so the fix disables this gcc options on ppc. MIPS fix is added in the hope of helping webkit-gtk build failure (gcc seg fault). And fix the PR bumps for all affected recipes Signed-off-by: Nitin A Kamble --- meta/packages/gcc/gcc-configure-common.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'meta/packages/gcc/gcc-configure-common.inc') 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" -- cgit v1.2.3-54-g00ecf