Blame SOURCES/glibc-rh730379.patch

b40826
2011-08-17  Ulrich Drepper  <drepper@gmail.com>
b40826
b40826
	* Makeconfig (override CFLAGS): Add library-specific CFLAGS.
b40826
	* resolv/Makefile: Define CFLAGS-libresolv.
b40826
b40826
Index: glibc-2.12-2-gc4ccff1/Makeconfig
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/Makeconfig
b40826
+++ glibc-2.12-2-gc4ccff1/Makeconfig
b40826
@@ -700,7 +700,9 @@ CPPFLAGS = $($(subdir)-CPPFLAGS) $(+incl
b40826
 override CFLAGS	= -std=gnu99 $(gnu89-inline-CFLAGS) \
b40826
 		  $(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \
b40826
 		  $(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(
b40826
-		  $(CFLAGS-$(@F))
b40826
+		  $(CFLAGS-$(@F)) \
b40826
+		  $(foreach lib,$(libof-$(basename $(@F))) \
b40826
+				$(libof-$(
b40826
 override CXXFLAGS = $(c++-sysincludes) \
b40826
 		    $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
b40826
 		    $(CFLAGS-$(suffix $@)) $(CFLAGS-$(
b40826
Index: glibc-2.12-2-gc4ccff1/resolv/Makefile
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/resolv/Makefile
b40826
+++ glibc-2.12-2-gc4ccff1/resolv/Makefile
b40826
@@ -76,6 +76,9 @@ CPPFLAGS += -Dgethostbyname=res_gethostb
b40826
 	    -Dgetnetbyname=res_getnetbyname \
b40826
 	    -Dgetnetbyaddr=res_getnetbyaddr
b40826
 
b40826
+ifeq (yes,$(have-ssp))
b40826
+CFLAGS-libresolv += -fstack-protector
b40826
+endif
b40826
 CFLAGS-res_hconf.c = -fexceptions
b40826
 CFLAGS-res_send.c += -fno-strict-aliasing
b40826