[toolchain/uclibc]: upgrade and fixup support for the uclibc nptl branch
[openwrt/svn-archive/archive.git] / toolchain / uClibc / patches-0.9.30+nptl / 150-use_gnu99.patch
1 --- a/libpthread/nptl/Makefile.in
2 +++ b/libpthread/nptl/Makefile.in
3 @@ -174,7 +174,7 @@
4 CFLAGS-pthread_barrierattr_setpshared.c = -D_GNU_SOURCE
5 CFLAGS-sem_open.c = -D_GNU_SOURCE
6
7 -CFLAGS-nptl = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 $(SSP_ALL_CFLAGS)
8 +CFLAGS-nptl = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -std=gnu99 $(SSP_ALL_CFLAGS)
9
10 CFLAGS-OMIT-alloca_cutoff.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
11 CFLAGS-OMIT-forward.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
12 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.in
13 +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.in
14 @@ -82,7 +82,7 @@
15 CFLAGS-timer_routines.c = -I$(top_srcdir)librt -DIS_IN_librt=1
16 CFLAGS-timer_settime.c = -I$(top_srcdir)librt -DIS_IN_librt=1
17
18 -CFLAGS-linux = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 $(SSP_ALL_CFLAGS)
19 +CFLAGS-linux = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -std=gnu99 $(SSP_ALL_CFLAGS)
20 #CFLAGS:=$(CFLAGS:-O1=-O2)
21
22 CFLAGS-OMIT-libc_pthread_init.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
23 --- a/ldso/ldso/Makefile.in
24 +++ b/ldso/ldso/Makefile.in
25 @@ -13,7 +13,7 @@
26 CFLAGS-ldso += -fno-omit-frame-pointer
27
28 CFLAGS-ldso += -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -I$(top_srcdir)ldso/ldso
29 -CFLAGS-ldso += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\"
30 +CFLAGS-ldso += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" -std=gnu99
31
32 ifeq ($(DODEBUG),y)
33 # Not really much point in including debugging info, since gdb