gcc-configure-common.inc: Disable --enable-target-optspace for *-*-linux-gnuspe.
PATCH 1/1 gcc-configure-common.inc: Disable --enable-target-optspace for *-*-linux-gnuspe.
Signed-off-by Khem Raj <[email protected]>
--- recipes/gcc/gcc-configure-common.inc | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
recipes/gcc/gcc-configure-common.inc +8 -1
@@ -16,6 +16,13 @@ OBJC_nylon ?= "" OBJC_mips ?= "" OBJC_mipsel ?= "" OBJC ?= ",objc" +# 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_linux-gnuspe ?= "" +OPTSPACE ?= "--enable-target-optspace" # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran' FORTRAN ?= ",f77"
@@ -27,7 +34,6 @@ EXTRA_OECONF_PATHS ?= "" 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 \ --enable-multilib \
@@ -36,6 +42,7 @@ 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} \
Signature · 1 line
1.6.5
Quoted 33 lines · Khem Raj
Signed-off-by Khem Raj <[email protected]>--- recipes/gcc/gcc-configure-common.inc | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)recipes/gcc/gcc-configure-common.inc +7
-1@@ -16,6 +16,13 @@ OBJC_nylon ?= "" OBJC_mips ?= "" OBJC_mipsel ?= "" OBJC ?= ",objc" +# 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_linux-gnuspe ?= "" +OPTSPACE ?= "--enable-target-optspace" # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran' FORTRAN ?= ",f77"@@ -27,7 +34,6 @@ EXTRA_OECONF_PATHS ?= "" 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 \ --enable-multilib \
recipes/gcc/gcc-configure-common.inc EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, · line 48
Quoted 7 lines
recipes/gcc/gcc-configure-common.inc +1
-0@@ -36,6 +42,7 @@ 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} \
Builds a gcc 4.4.2 based toolchain without problems
Acked-by Dirk Opfer <[email protected]>
Thanks,
Dirk