[oe-commits] Khem Raj : gcc-4.7: Do not use --with-header option for cross-gcc

git at git.openembedded.org git at git.openembedded.org
Thu Apr 26 14:08:26 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: 11cbd871e0969931d5c81ec53684446f4293faf1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=11cbd871e0969931d5c81ec53684446f4293faf1

Author: Khem Raj <raj.khem at gmail.com>
Date:   Thu Apr 12 21:35:14 2012 -0700

gcc-4.7: Do not use --with-header option for cross-gcc

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 meta/recipes-devtools/gcc/gcc-configure-cross.inc |    2 +-
 meta/recipes-devtools/gcc/gcc-cross_4.7.bb        |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-configure-cross.inc b/meta/recipes-devtools/gcc/gcc-configure-cross.inc
index 65e340a..3cb3452 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-cross.inc
@@ -3,12 +3,12 @@ require gcc-configure-common.inc
 USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
 
 EXTRA_OECONF += " --enable-poison-system-directories \
-		  --with-headers=${STAGING_DIR_TARGET}${SYSTEMHEADERS} \
 		"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
 EXTRA_OECONF_PATHS = " \
+		      --with-headers=${STAGING_DIR_TARGET}${SYSTEMHEADERS} \
 		      --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \
                       --with-sysroot=${STAGING_DIR_TARGET} \
                       --with-build-sysroot=${STAGING_DIR_TARGET}"
diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.7.bb b/meta/recipes-devtools/gcc/gcc-cross_4.7.bb
index 75679d1..d605235 100644
--- a/meta/recipes-devtools/gcc/gcc-cross_4.7.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross_4.7.bb
@@ -5,4 +5,10 @@ EXTRA_OECONF += "--disable-libunwind-exceptions \
                  --with-mpfr=${STAGING_DIR_NATIVE}${prefix_native} \
                  --with-system-zlib "
 
+EXTRA_OECONF_PATHS = " \
+                      --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \
+                      --with-sysroot=${STAGING_DIR_TARGET} \
+                      --with-build-sysroot=${STAGING_DIR_TARGET}"
+
+
 ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}"





More information about the Openembedded-commits mailing list