Blame SOURCES/redhat-rpm-config-9.1.0-relro.patch

eaaa62
diff -up redhat-rpm-config-9.1.0/macros.jx redhat-rpm-config-9.1.0/macros
eaaa62
--- redhat-rpm-config-9.1.0/macros.jx	2011-07-07 13:10:18.000000000 -0400
eaaa62
+++ redhat-rpm-config-9.1.0/macros	2011-07-07 13:12:00.299594529 -0400
eaaa62
@@ -31,6 +31,7 @@
eaaa62
   CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
eaaa62
   CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
eaaa62
   FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \
eaaa62
+  LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS; \
eaaa62
   %{_configure} --build=%{_build} --host=%{_host} \\\
eaaa62
 	--program-prefix=%{?_program_prefix} \\\
eaaa62
 	--disable-dependency-tracking \\\
eaaa62
@@ -184,6 +185,7 @@ unset DISPLAY\
eaaa62
 %__find_requires        /usr/lib/rpm/redhat/find-requires
eaaa62
 
eaaa62
 %__global_cflags	-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
eaaa62
+%__global_ldflags	-Wl,-z,relro
eaaa62
 
eaaa62
 # Use these macros to differentiate between RH and other KMP implementation(s).
eaaa62
 redhat_kernel_module_package	1