aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches/4.7.2
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-01-07 18:16:40 +0000
committerFlorian Fainelli <florian@openwrt.org>2013-01-07 18:16:40 +0000
commit5ae9a4f830f369b4e8cf20d5bc569946f7cae06e (patch)
tree1cfbedb8b5fca2a5c145232a013001d358dcacb4 /toolchain/gcc/patches/4.7.2
parent4ec57bdc06969132ef2905f9900643e579848dc4 (diff)
downloadupstream-5ae9a4f830f369b4e8cf20d5bc569946f7cae06e.tar.gz
upstream-5ae9a4f830f369b4e8cf20d5bc569946f7cae06e.tar.bz2
upstream-5ae9a4f830f369b4e8cf20d5bc569946f7cae06e.zip
gcc: fix build for MIPS64 targets introduced by musl patch
Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 35046
Diffstat (limited to 'toolchain/gcc/patches/4.7.2')
-rw-r--r--toolchain/gcc/patches/4.7.2/200-musl.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.7.2/200-musl.patch b/toolchain/gcc/patches/4.7.2/200-musl.patch
index 5d0d49ba6d..df34a09cce 100644
--- a/toolchain/gcc/patches/4.7.2/200-musl.patch
+++ b/toolchain/gcc/patches/4.7.2/200-musl.patch
@@ -334,3 +334,17 @@ diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
hpux*)
os_include_dir="os/hpux"
;;
+diff --git a/gcc/config/mips/linux64.h b/gcc/config/mips/linux64.h
+--- a/gcc/config/mips/linux64.h 2012-11-13 12:42:00.000000000 +0100
++++ n/gcc/config/mips/linux64.h 2012-11-29 15:35:10.434361723 +0100
+@@ -28,6 +28,9 @@
+ #define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
+ #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
+ #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
++#define MUSL_DYNAMIC_LINKERN32 "/lib32/ld-musl-mips.so.1"
++#define MUSL_DYNAMIC_LINKER32 "/lib32/ld-musl-mips.so.1"
++#define MUSL_DYNAMIC_LINKER64 "/lib64/ld-musl-mips.so.1"
+ #define GNU_USER_DYNAMIC_LINKERN32 \
+ CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
+- BIONIC_DYNAMIC_LINKERN32)
++ BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)