summaryrefslogtreecommitdiff
path: root/meta/packages/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-07-30 14:05:16 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-10 15:02:09 +0100
commit1842635ee89b1ffb3b6fda2c9fecaff973900f0a (patch)
tree99cdf8ed7bb8c20e5ea209f15c7fc56d4fb280e2 /meta/packages/gcc/gcc-configure-common.inc
parent8fd7cc38b54a62cdc00f505cbfcb25a37013f641 (diff)
downloadopenembedded-core-1842635ee89b1ffb3b6fda2c9fecaff973900f0a.tar.gz
openembedded-core-1842635ee89b1ffb3b6fda2c9fecaff973900f0a.tar.bz2
openembedded-core-1842635ee89b1ffb3b6fda2c9fecaff973900f0a.tar.xz
openembedded-core-1842635ee89b1ffb3b6fda2c9fecaff973900f0a.zip
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 <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/packages/gcc/gcc-configure-common.inc')
-rw-r--r--meta/packages/gcc/gcc-configure-common.inc11
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 3400296c2..ab42bc560 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"