OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Commit Details
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 | ||
---|---|---|
45 | 45 | |
46 | 46 | define Build/Prepare |
47 | 47 | $(call Build/Prepare/Default) |
48 | ($(CP) ./patches $(PKG_BUILD_DIR); cd $(PKG_BUILD_DIR); patch -Np1 < ./patches/001-cache-amnesia.patch;); | |
48 | 49 | $(SED) 's,\(version_string.. = "[0-9\.]*\).*\(";\),\1 (OpenWrt-2.0)\2,' $(PKG_BUILD_DIR)/gcc/version.c |
49 | 50 | $(SED) 's,\(bug_report_url.. = "\).*\(";\),\1<URL:https://dev.openwrt.org/>\2,' $(PKG_BUILD_DIR)/gcc/version.c |
50 | 51 | (cd $(PKG_BUILD_DIR)/libstdc++-v3; autoconf;); |
gcc-mips/patches/001-cache-amnesia.patch | ||
---|---|---|
1 | diff --git a/gcc/configure b/gcc/configure | |
2 | index 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}" |