150-use_gnu99.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233
  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. -CFLAGS-nptl = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 $(SSP_ALL_CFLAGS)
  7. +CFLAGS-nptl = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -std=gnu99 $(SSP_ALL_CFLAGS)
  8. CFLAGS-OMIT-alloca_cutoff.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
  9. CFLAGS-OMIT-forward.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
  10. --- a/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.in
  11. +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.in
  12. @@ -82,7 +82,7 @@
  13. CFLAGS-timer_routines.c = -I$(top_srcdir)librt -DIS_IN_librt=1
  14. CFLAGS-timer_settime.c = -I$(top_srcdir)librt -DIS_IN_librt=1
  15. -CFLAGS-linux = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 $(SSP_ALL_CFLAGS)
  16. +CFLAGS-linux = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -std=gnu99 $(SSP_ALL_CFLAGS)
  17. #CFLAGS:=$(CFLAGS:-O1=-O2)
  18. CFLAGS-OMIT-libc_pthread_init.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
  19. --- a/ldso/ldso/Makefile.in
  20. +++ b/ldso/ldso/Makefile.in
  21. @@ -13,7 +13,7 @@
  22. CFLAGS-ldso += -fno-omit-frame-pointer
  23. CFLAGS-ldso += -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -I$(top_srcdir)ldso/ldso
  24. -CFLAGS-ldso += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\"
  25. +CFLAGS-ldso += -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" -std=gnu99
  26. ifeq ($(DODEBUG),y)
  27. # Not really much point in including debugging info, since gdb