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 ?= "" | |||
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" |