uClibc: unbreak ld-uClibc on non-64bit platforms
[openwrt/svn-archive/archive.git] / toolchain / uClibc / patches-0.9.33.2 / 980-mips64_fixes.patch
1 diff -Nur uClibc-0.9.33.2.orig/extra/Configs/Config.in uClibc-0.9.33.2/extra/Configs/Config.in
2 --- uClibc-0.9.33.2.orig/extra/Configs/Config.in 2012-05-15 09:20:09.000000000 +0200
3 +++ uClibc-0.9.33.2/extra/Configs/Config.in 2012-10-01 12:17:14.000000000 +0200
4 @@ -235,6 +235,9 @@
5 default "i486" if CONFIG_486
6 default "i586" if CONFIG_586 || CONFIG_586MMX
7 default "i686" if TARGET_ARCH = "i386"
8 + default "mips" if CONFIG_MIPS_N32_ABI
9 + default "mips" if CONFIG_MIPS_O32_ABI
10 + default "mips64" if CONFIG_MIPS_N64_ABI
11 default ""
12
13 source "extra/Configs/Config.in.arch"
14 diff -Nur uClibc-0.9.33.2.orig/Rules.mak uClibc-0.9.33.2/Rules.mak
15 --- uClibc-0.9.33.2.orig/Rules.mak 2012-05-15 09:20:09.000000000 +0200
16 +++ uClibc-0.9.33.2/Rules.mak 2012-10-01 11:28:26.000000000 +0200
17 @@ -118,7 +118,7 @@
18 LIBC := libc
19 SHARED_LIBNAME := $(LIBC).so.$(ABI_VERSION)
20 UBACKTRACE_DSO := libubacktrace.so.$(ABI_VERSION)
21 -ifneq ($(findstring $(TARGET_ARCH) , hppa64 ia64 mips64 powerpc64 s390x sparc64 x86_64 ),)
22 +ifneq ($(strip $(findstring $(TARGET_SUBARCH) , hppa64 ia64 mips64 powerpc64 s390x sparc64 x86_64 )),)
23 UCLIBC_LDSO_NAME := ld64-uClibc
24 ARCH_NATIVE_BIT := 64
25 else