patches/glibc/ports-2.13/100-respect-env-CPPFLAGS.patch
changeset 2438 2ba5655f6297
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/ports-2.13/100-respect-env-CPPFLAGS.patch	Tue May 03 00:19:56 2011 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +Respect environment CPPFLAGS when we run ./configure so we can inject
     1.5 +random -D things without having to set CFLAGS/ASFLAGS
     1.6 +
     1.7 +diff -durN glibc-2.13.orig/Makeconfig glibc-2.13/Makeconfig
     1.8 +--- glibc-2.13.orig/Makeconfig	2009-05-09 23:57:56.000000000 +0200
     1.9 ++++ glibc-2.13/Makeconfig	2009-11-13 00:49:41.000000000 +0100
    1.10 +@@ -697,6 +697,7 @@
    1.11 + 	   $(foreach lib,$(libof-$(basename $(@F))) \
    1.12 + 			 $(libof-$(<F)) $(libof-$(@F)),$(CPPFLAGS-$(lib))) \
    1.13 + 	   $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) $(CPPFLAGS-$(basename $(@F)))
    1.14 ++CPPFLAGS += $(CPPFLAGS-config)
    1.15 + override CFLAGS	= -std=gnu99 $(gnu89-inline-CFLAGS) \
    1.16 + 		  $(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \
    1.17 + 		  $(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) \