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} \