gcc-configure-common: Dont fiddle with NATIVE_SYSTEM_HEADER_DIR
authorKhem Raj <raj.khem@gmail.com>
Wed, 9 Sep 2009 03:49:09 +0000 (20:49 -0700)
committerKhem Raj <raj.khem@gmail.com>
Fri, 11 Sep 2009 02:26:08 +0000 (19:26 -0700)
* This does not work on canadian cross build of target gcc.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/gcc/gcc-4.4.1.inc
recipes/gcc/gcc-configure-common.inc

index 9bc4d17..f32f749 100644 (file)
@@ -30,46 +30,3 @@ EXTRA_OECONF_BASE = " --enable-libssp \
                      --disable-libmudflap"
 
 EXTRA_OECONF_append_linux-uclibc = " ${@base_contains('TARGET_ARCH', 'powerpc', '--disable-decimal-float --without-long-double-128', '',d)}"
-do_configure () {
-        # Setup these vars for cross building only
-        # ... because foo_FOR_TARGET apparently gets misinterpreted inside the
-        # gcc build stuff when the build is producing a cross compiler - i.e.
-        # when the 'current' target is the 'host' system, and the host is not
-        # the target (because the build is actually making a cross compiler!)
-        if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
-                export CC_FOR_TARGET="${CC}"
-                export GCC_FOR_TARGET="${CC}"
-                export CXX_FOR_TARGET="${CXX}"
-                export AS_FOR_TARGET="${HOST_PREFIX}as"
-                export LD_FOR_TARGET="${HOST_PREFIX}ld"
-                export NM_FOR_TARGET="${HOST_PREFIX}nm"
-                export AR_FOR_TARGET="${HOST_PREFIX}ar"
-                export GFORTRAN_FOR_TARGET="gfortran"
-                export RANLIB_FOR_TARGET="${HOST_PREFIX}ranlib"
-        fi
-        export CC_FOR_BUILD="${BUILD_CC}"
-        export CXX_FOR_BUILD="${BUILD_CXX}"
-        export CFLAGS_FOR_BUILD="${BUILD_CFLAGS}"
-        export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
-        export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
-        export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
-        export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
-
-        # Make sure LDFLAGS are honored.
-        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.in
-        sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.tpl
-
-        (cd ${S} && gnu-configize) || die "failure running gnu-configize"
-
-        # splice our idea of where the headers live into gcc's world
-        #echo "NATIVE_SYSTEM_HEADER_DIR = ${layout_includedir}" > ${T}/t-oe
-        #sed 's%^tmake_file=.*$%& ${T}/t-oe%' < ${S}/gcc/Makefile.in >${S}/gcc/Makefile.in.new
-        #mv ${S}/gcc/Makefile.in.new ${S}/gcc/Makefile.in
-
-        #echo "#define STANDARD_INCLUDE_DIR \"${layout_includedir}\"" >> ${S}/gcc/defaults.h
-
-        oe_runconf
-
-        # make sure that no @LDFLAG@ is left in the generated Makefile
-        sed -i "s/@LDFLAGS@//g" ${B}/Makefile
-}
index 1c605a1..7315a20 100644 (file)
@@ -81,13 +81,6 @@ do_configure () {
 
        (cd ${S} && gnu-configize) || die "failure running gnu-configize"
 
-       # splice our idea of where the headers live into gcc's world
-       echo "NATIVE_SYSTEM_HEADER_DIR = ${layout_includedir}" > ${T}/t-oe
-       sed 's%^tmake_file=.*$%& ${T}/t-oe%' < ${S}/gcc/Makefile.in >${S}/gcc/Makefile.in.new
-       mv ${S}/gcc/Makefile.in.new ${S}/gcc/Makefile.in
-
-       echo "#define STANDARD_INCLUDE_DIR \"${layout_includedir}\"" >> ${S}/gcc/defaults.h
-
        oe_runconf
 
        # make sure that no @LDFLAG@ is left in the generated Makefile