gcc: Make gcc build on amd64 by having it forget target configure cache when configuring for build machine. (from OE)

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3050 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz 2007-10-31 11:15:37 +00:00
parent c1c8083bfb
commit 1c77306bcd
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/gcc/configure b/gcc/configure
index 44620ab..6e1830c 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -12272,7 +12272,7 @@ else
esac
saved_CFLAGS="${CFLAGS}"
CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
- ${realsrcdir}/configure \
+ CONFIG_SITE= ${realsrcdir}/configure --cache-file=./other.cache \
--enable-languages=${enable_languages-all} \
--target=$target_alias --host=$build_alias --build=$build_alias
CFLAGS="${saved_CFLAGS}"

View File

@ -29,6 +29,7 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.2/gcc-4.1.2.tar.bz2 \
file://zecke-xgcc-cpp.patch;patch=1 \
file://unbreak-armv4t.patch;patch=1 \
file://fix-ICE-in-arm_unwind_emit_set.diff;patch=1 \
file://cache-amnesia.patch;patch=1 \
"
SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 "