diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-07-30 14:05:16 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 15:02:09 +0100 |
commit | 1842635ee89b1ffb3b6fda2c9fecaff973900f0a (patch) | |
tree | 99cdf8ed7bb8c20e5ea209f15c7fc56d4fb280e2 /meta/packages/gcc/gcc-configure-common.inc | |
parent | 8fd7cc38b54a62cdc00f505cbfcb25a37013f641 (diff) | |
download | poky-1842635ee89b1ffb3b6fda2c9fecaff973900f0a.tar.gz |
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.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 ?= "" | |||
12 | # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran' | 12 | # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran' |
13 | FORTRAN ?= ",f77" | 13 | FORTRAN ?= ",f77" |
14 | LANGUAGES ?= "c,c++${FORTRAN}${JAVA}" | 14 | LANGUAGES ?= "c,c++${FORTRAN}${JAVA}" |
15 | # disable --enable-target-optspace for powerpc SPE | ||
16 | # at -Os libgcc.so.1 creates references into | ||
17 | # hidden symbols in libgcc.a which linker complains | ||
18 | # when linking shared libraries further in the build like (gnutls) | ||
19 | |||
20 | OPTSPACE = "${@base_contains('TARGET_ARCH', 'powerpc', '', '--enable-target-optspace',d)}" | ||
15 | 21 | ||
16 | EXTRA_OECONF_BASE ?= "" | 22 | EXTRA_OECONF_BASE ?= "" |
17 | EXTRA_OECONF_PATHS ?= "" | 23 | EXTRA_OECONF_PATHS ?= "" |
@@ -23,7 +29,6 @@ GCCMULTILIB = "--disable-multilib" | |||
23 | EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ | 29 | EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \ |
24 | --with-gnu-ld \ | 30 | --with-gnu-ld \ |
25 | --enable-shared \ | 31 | --enable-shared \ |
26 | --enable-target-optspace \ | ||
27 | --enable-languages=${LANGUAGES} \ | 32 | --enable-languages=${LANGUAGES} \ |
28 | --enable-threads=posix \ | 33 | --enable-threads=posix \ |
29 | ${GCCMULTILIB} \ | 34 | ${GCCMULTILIB} \ |
@@ -32,9 +37,11 @@ EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, | |||
32 | --enable-symvers=gnu \ | 37 | --enable-symvers=gnu \ |
33 | --enable-libstdcxx-pch \ | 38 | --enable-libstdcxx-pch \ |
34 | --program-prefix=${TARGET_PREFIX} \ | 39 | --program-prefix=${TARGET_PREFIX} \ |
40 | ${OPTSPACE} \ | ||
35 | ${EXTRA_OECONF_BASE} \ | 41 | ${EXTRA_OECONF_BASE} \ |
36 | ${EXTRA_OECONF_FPU} \ | 42 | ${EXTRA_OECONF_FPU} \ |
37 | ${EXTRA_OECONF_PATHS}" | 43 | ${EXTRA_OECONF_PATHS} \ |
44 | ${@get_gcc_mips_plt_setting(bb, d)}" | ||
38 | 45 | ||
39 | # Build uclibc compilers without cxa_atexit support | 46 | # Build uclibc compilers without cxa_atexit support |
40 | EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" | 47 | EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" |