4c7dd46891c4b50447192e9167ab04be14d32d75
[openwrt/openwrt.git] / toolchain / uClibc / patches-0.9.33.2 / 981-fix_setting_arch_native_bit.patch
1 From 7e509aae23665b9a79f6c9b4c24d1d8a55bd3582 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Wed, 24 Jul 2013 15:30:35 +0000
4 Subject: Rules.mak: Fix setting arch native bit
5
6 fix breakage from 603af30d
7
8 Removing the whitespace from findstring for 64 bit architectures has
9 bad consequences since powerpc would be a match in powerpc64 and sparc
10 would also be a match in sparc64.
11 That doesn't make them 64 bits in reality causing general breakage.
12
13 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
14 Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
15 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
16 ---
17
18 --- a/Rules.mak
19 +++ b/Rules.mak
20 @@ -121,7 +121,7 @@ UBACKTRACE_DSO := libubacktrace.so.$(ABI
21
22 UCLIBC_LDSO_NAME := ld-uClibc
23 ARCH_NATIVE_BIT := 32
24 -ifneq ($(findstring $(TARGET_ARCH),hppa64 ia64 powerpc64 s390x sparc64 x86_64),)
25 +ifneq ($(findstring $(TARGET_ARCH) , hppa64 ia64 powerpc64 s390x sparc64 x86_64 ),)
26 UCLIBC_LDSO_NAME := ld64-uClibc
27 ARCH_NATIVE_BIT := 64
28 else