[oe-commits] Khem Raj : gcc-configure: Disable --enable-target-optspace for powerpc.
git version control
git at git.openembedded.org
Wed May 12 05:17:36 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: f040929a0756fca1d782b03e2e8be32dd17d3e3f
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f040929a0756fca1d782b03e2e8be32dd17d3e3f
Author: Khem Raj <raj.khem at gmail.com>
Date: Tue May 11 16:46:45 2010 -0700
gcc-configure: Disable --enable-target-optspace for powerpc.
* Use OPTSPACE to get the value in gcc-cross-initial and
gcc-cross-intermediate inc files.
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
recipes/gcc/gcc-configure-common.inc | 5 +----
recipes/gcc/gcc-cross-initial.inc | 2 +-
recipes/gcc/gcc-cross-intermediate.inc | 2 +-
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/recipes/gcc/gcc-configure-common.inc b/recipes/gcc/gcc-configure-common.inc
index fe8b486..892d684 100644
--- a/recipes/gcc/gcc-configure-common.inc
+++ b/recipes/gcc/gcc-configure-common.inc
@@ -21,10 +21,7 @@ OBJC ?= ",objc"
# hidden symbols in libgcc.a which linker complains
# when linking shared libraries further in the build like (gnutls)
-OPTSPACE_linux-gnuspe ?= ""
-OPTSPACE_linux-uclibcspe ?= ""
-OPTSPACE ?= "--enable-target-optspace"
-
+OPTSPACE = "${@base_contains('TARGET_ARCH', 'powerpc', '', '--enable-target-optspace',d)}"
# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
FORTRAN ?= ",f77"
LANGUAGES ?= "c,c++${OBJC}${FORTRAN}${JAVA}"
diff --git a/recipes/gcc/gcc-cross-initial.inc b/recipes/gcc/gcc-cross-initial.inc
index 97002f9..25d7ba5 100644
--- a/recipes/gcc/gcc-cross-initial.inc
+++ b/recipes/gcc/gcc-cross-initial.inc
@@ -12,11 +12,11 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
--disable-multilib \
--disable-__cxa_atexit \
--enable-languages=c \
- --enable-target-optspace \
--program-prefix=${TARGET_PREFIX} \
--with-sysroot=${STAGING_DIR_TARGET} \
--with-build-sysroot=${STAGING_DIR_TARGET} \
${EXTRA_OECONF_INITIAL} \
+ ${OPTSPACE} \
${@get_gcc_fpu_setting(bb, d)} \
${@get_gcc_mips_plt_setting(bb, d)}"
diff --git a/recipes/gcc/gcc-cross-intermediate.inc b/recipes/gcc/gcc-cross-intermediate.inc
index 0c06d6f..cbc8638 100644
--- a/recipes/gcc/gcc-cross-intermediate.inc
+++ b/recipes/gcc/gcc-cross-intermediate.inc
@@ -10,10 +10,10 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
--disable-multilib \
--disable-threads \
--enable-languages=c \
- --enable-target-optspace \
--program-prefix=${TARGET_PREFIX} \
--with-sysroot=${STAGING_DIR_TARGET} \
--with-build-sysroot=${STAGING_DIR_TARGET} \
+ ${OPTSPACE} \
${EXTRA_OECONF_INTERMEDIATE} \
${@get_gcc_fpu_setting(bb, d)} \
${@get_gcc_mips_plt_setting(bb, d)}"
More information about the Openembedded-commits
mailing list