]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-cross: Use staging for local-prefix instead of cross, undo ARCH_FLAGS_FOR_TARGET...
authorRichard Purdie <richard@openedhand.com>
Wed, 19 Sep 2007 13:01:18 +0000 (13:01 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 19 Sep 2007 13:01:18 +0000 (13:01 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2763 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/gcc/gcc-cross-initial.inc
meta/packages/gcc/gcc3-build-cross.inc
meta/packages/gcc/gcc3-build.inc

index 49e1937b0644662f5467387cad6fa8c3910c5750..7c56afecef35c7abfeb37be62e6d9269605e0067 100644 (file)
@@ -4,7 +4,7 @@ PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial"
 PACKAGES = ""
 
 # This is intended to be a -very- basic config
-EXTRA_OECONF = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \
+EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR}/${TARGET_SYS} \
                --with-newlib \
                --disable-shared \
                --disable-threads \
index 94aa1f4e9a6fa4c430551da8febea0d2b1af07e7..ec285f522bbbc4541e91fba013186cbd58cfb020 100644 (file)
@@ -1,7 +1,7 @@
 USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
 
-EXTRA_OECONF_PATHS = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \
-                     --with-gxx-include-dir=${CROSS_DIR}/${TARGET_SYS}/include/c++"
+EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR}/${TARGET_SYS} \
+                     --with-gxx-include-dir=${STAGING_DIR}/${TARGET_SYS}/include/c++"
 
 do_configure_prepend () {
        rm -f ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a
index 0ab66addb5c5610b1ed435d6d4595d471bf4b5b5..2924f0f9dd091757249ed86823432b164535b5ed 100644 (file)
@@ -47,11 +47,11 @@ CPPFLAGS = ""
 
 # Used by configure to define additional values for FLAGS_FOR_TARGET -
 # passed to all the compilers.
-ARCH_FLAGS_FOR_TARGET = "-isystem${STAGING_DIR}/${TARGET_SYS}/include"
+ARCH_FLAGS_FOR_TARGET = ""
 #NOTE: not tested on other platforms, the following is probably correct
 # everywhere!
-ARCH_FLAGS_FOR_TARGET_slugos = "-isystem${STAGING_DIR}/${TARGET_SYS}/include ${TARGET_CC_ARCH}"
-ARCH_FLAGS_FOR_TARGET_unslung = "-isystem${STAGING_DIR}/${TARGET_SYS}/include ${TARGET_CC_ARCH}"
+ARCH_FLAGS_FOR_TARGET_slugos = "${TARGET_CC_ARCH}"
+ARCH_FLAGS_FOR_TARGET_unslung = "${TARGET_CC_ARCH}"
 EXTRA_OEMAKE += "ARCH_FLAGS_FOR_TARGET='${ARCH_FLAGS_FOR_TARGET}'"
 
 require gcc-fpu.inc