From 8e60e55b8af0956670dda6e00ba0162e89310019 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Jul 07 2011 17:17:24 +0000 Subject: redhat-rpm-config-9.1.0-relro.patch: LDFLAGS, not CFLAGS. --- diff --git a/redhat-rpm-config-9.1.0-relro.patch b/redhat-rpm-config-9.1.0-relro.patch index b6bcb8a..10c09d6 100644 --- a/redhat-rpm-config-9.1.0-relro.patch +++ b/redhat-rpm-config-9.1.0-relro.patch @@ -1,12 +1,19 @@ diff -up redhat-rpm-config-9.1.0/macros.jx redhat-rpm-config-9.1.0/macros ---- redhat-rpm-config-9.1.0/macros.jx 2011-06-27 12:30:32.000000000 -0400 -+++ redhat-rpm-config-9.1.0/macros 2011-06-27 12:36:02.737309782 -0400 -@@ -183,7 +183,7 @@ unset DISPLAY\ - %__find_provides /usr/lib/rpm/redhat/find-provides +--- redhat-rpm-config-9.1.0/macros.jx 2011-07-07 13:10:18.000000000 -0400 ++++ redhat-rpm-config-9.1.0/macros 2011-07-07 13:12:00.299594529 -0400 +@@ -31,6 +31,7 @@ + CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ + CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ + FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \ ++ LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS; \ + %{_configure} --build=%{_build} --host=%{_host} \\\ + --program-prefix=%{?_program_prefix} \\\ + --disable-dependency-tracking \\\ +@@ -184,6 +185,7 @@ unset DISPLAY\ %__find_requires /usr/lib/rpm/redhat/find-requires --%__global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -+%__global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wl,-z,relro + %__global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 ++%__global_ldflags -Wl,-z,relro # Use these macros to differentiate between RH and other KMP implementation(s). redhat_kernel_module_package 1 diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 8a73840..bba179e 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -1,7 +1,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config Version: 9.1.0 -Release: 12%{?dist} +Release: 13%{?dist} # No version specified. License: GPL+ Group: Development/System @@ -57,6 +57,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_sysconfdir}/rpm/* %changelog +* Thu Jul 07 2011 Adam Jackson 9.1.0-13 +- redhat-rpm-config-9.1.0-relro.patch: LDFLAGS, not CFLAGS. + * Sat Jul 02 2011 Jon Masters - 9.1.0-12 - redhat-rpm-config-9.1.0-arm.patch: Make armv7hl default on all v7 ARM