summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-04-12 21:35:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-30 11:37:27 +0100
commit8250ca8b32f7d84c344521b71abc6fb095c347a0 (patch)
treeecd13a6f96387401b8b6d0836a988875eeec657c /meta/recipes-devtools/gcc
parent9f328535440abe241fd679aa1d211e6b4e71f885 (diff)
downloadpoky-8250ca8b32f7d84c344521b71abc6fb095c347a0.tar.gz
gcc-4.7: Do not use --with-header option for cross-gcc
(From OE-Core rev: 11cbd871e0969931d5c81ec53684446f4293faf1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-cross.inc2
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross_4.7.bb6
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 65e340a0d7..3cb3452e63 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
3USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' 3USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
4 4
5EXTRA_OECONF += " --enable-poison-system-directories \ 5EXTRA_OECONF += " --enable-poison-system-directories \
6 --with-headers=${STAGING_DIR_TARGET}${SYSTEMHEADERS} \
7 " 6 "
8 7
9INHIBIT_DEFAULT_DEPS = "1" 8INHIBIT_DEFAULT_DEPS = "1"
10 9
11EXTRA_OECONF_PATHS = " \ 10EXTRA_OECONF_PATHS = " \
11 --with-headers=${STAGING_DIR_TARGET}${SYSTEMHEADERS} \
12 --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \ 12 --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \
13 --with-sysroot=${STAGING_DIR_TARGET} \ 13 --with-sysroot=${STAGING_DIR_TARGET} \
14 --with-build-sysroot=${STAGING_DIR_TARGET}" 14 --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 75679d1b05..d60523513f 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 \
5 --with-mpfr=${STAGING_DIR_NATIVE}${prefix_native} \ 5 --with-mpfr=${STAGING_DIR_NATIVE}${prefix_native} \
6 --with-system-zlib " 6 --with-system-zlib "
7 7
8EXTRA_OECONF_PATHS = " \
9 --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \
10 --with-sysroot=${STAGING_DIR_TARGET} \
11 --with-build-sysroot=${STAGING_DIR_TARGET}"
12
13
8ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}" 14ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}"