Date:2010-11-07 17:52:05 (13 years 4 months ago)
Author:Xiangfu Liu
Commit:30e2a2aca834adb73584a886bb7206d128794af3
Message:[gcc-mips] fix compile error in 64bit system. ERR MSG: real.h:82: error: size of array 'test_real_width' is negative

when gcc-mips compiling. it's first apply openwrt/toolchain/gcc.../patches.
it not apply package/gcc-mips/patches. so this patch is manuly apply this
patch.

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
Files: gcc-mips/Makefile (1 diff)
gcc-mips/patches/001-cache-amnesia.patch (1 diff)

Change Details

gcc-mips/Makefile
4545
4646define Build/Prepare
4747    $(call Build/Prepare/Default)
48    ($(CP) ./patches $(PKG_BUILD_DIR); cd $(PKG_BUILD_DIR); patch -Np1 < ./patches/001-cache-amnesia.patch;);
4849    $(SED) 's,\(version_string.. = "[0-9\.]*\).*\(";\),\1 (OpenWrt-2.0)\2,' $(PKG_BUILD_DIR)/gcc/version.c
4950    $(SED) 's,\(bug_report_url.. = "\).*\(";\),\1<URL:https://dev.openwrt.org/>\2,' $(PKG_BUILD_DIR)/gcc/version.c
5051    (cd $(PKG_BUILD_DIR)/libstdc++-v3; autoconf;);
gcc-mips/patches/001-cache-amnesia.patch
1diff --git a/gcc/configure b/gcc/configure
2index f7d4161..7f11021 100755
3--- a/gcc/configure
4@@ -12972,7 +12972,7 @@ else
5     esac
6     saved_CFLAGS="${CFLAGS}"
7     CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
8- ${realsrcdir}/configure \
9+ CONFIG_SITE= ${realsrcdir}/configure --cache-file=./other.cache \
10         --enable-languages=${enable_languages-all} \
11         --target=$target_alias --host=$build_alias --build=$build_alias
12     CFLAGS="${saved_CFLAGS}"

Archive Download the corresponding diff file



interactive