From 681b260b4e4c63b128faec44a2fcbad08ca93491 Mon Sep 17 00:00:00 2001 From: kyak Date: Thu, 26 May 2011 16:20:04 +0400 Subject: [PATCH] gcc-mips: restore cache-amnesia patch to fix build on x64 --- gcc-mips/Makefile | 2 +- gcc-mips/patches/001-cache-amnesia.patch | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gcc-mips/Makefile b/gcc-mips/Makefile index a2048df..1063f12 100644 --- a/gcc-mips/Makefile +++ b/gcc-mips/Makefile @@ -45,7 +45,7 @@ endef define Build/Prepare $(call Build/Prepare/Default) -# ($(CP) ./patches $(PKG_BUILD_DIR); cd $(PKG_BUILD_DIR); patch -Np1 < ./patches/001-cache-amnesia.patch;); + ($(CP) ./patches $(PKG_BUILD_DIR); cd $(PKG_BUILD_DIR); patch -Np1 < ./patches/001-cache-amnesia.patch;); (cd $(PKG_BUILD_DIR)/libstdc++-v3; \ $(SED) 's/m4_rename(/m4_rename_force(/' acinclude.m4;); endef diff --git a/gcc-mips/patches/001-cache-amnesia.patch b/gcc-mips/patches/001-cache-amnesia.patch index 6dab5df..509acd1 100644 --- a/gcc-mips/patches/001-cache-amnesia.patch +++ b/gcc-mips/patches/001-cache-amnesia.patch @@ -1,11 +1,9 @@ -diff --git a/gcc/configure b/gcc/configure -index f7d4161..7f11021 100755 --- a/gcc/configure +++ b/gcc/configure -@@ -12972,7 +12972,7 @@ else - esac +@@ -10527,7 +10527,7 @@ saved_CFLAGS="${CFLAGS}" CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ + LDFLAGS="${LDFLAGS_FOR_BUILD}" \ - ${realsrcdir}/configure \ + CONFIG_SITE= ${realsrcdir}/configure --cache-file=./other.cache \ --enable-languages=${enable_languages-all} \