fix uclibc compile on brcm-2.4
[openwrt-10.03/.git] / toolchain / uClibc / patches / 130-compile_fixes.patch
1 Index: uClibc-0.9.29/libc/string/mips/sysdep.h
2 ===================================================================
3 --- uClibc-0.9.29.orig/libc/string/mips/sysdep.h        2007-12-30 20:10:30.969471579 +0100
4 +++ uClibc-0.9.29/libc/string/mips/sysdep.h     2007-12-30 20:10:37.717856150 +0100
5 @@ -29,7 +29,7 @@
6    .globl name;                                                                \
7    .align 2;                                                                   \
8    .ent name,0;                                                                \
9 -  name##:
10 +  name:
11  
12  #undef END
13  #define END(function)                                   \
14 Index: uClibc-0.9.29/Rules.mak
15 ===================================================================
16 --- uClibc-0.9.29.orig/Rules.mak        2007-12-30 20:22:54.727521234 +0100
17 +++ uClibc-0.9.29/Rules.mak     2007-12-30 20:23:05.320124876 +0100
18 @@ -399,7 +399,7 @@
19  CFLAGS += -DSTATIC
20  endif
21  
22 -CFLAGS += $(call check_gcc,-std=gnu99,)
23 +# CFLAGS += $(call check_gcc,-std=gnu99,)
24  
25  LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
26  # binutils-2.16.1 warns about ignored sections, 2.16.91.0.3 and newer are ok