redhat-hardened-cc1: Inject -fPIE, not -fPIC.

cf. http://lists.fedoraproject.org/pipermail/devel/2011-September/157365.html
This commit is contained in:
Adam Jackson 2011-09-22 14:42:22 -04:00
parent 688e86b5a8
commit 3e26010b1e
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
%rename cc1_options rh_cc1_options_old %rename cc1_options rh_cc1_options_old
*cc1_options: *cc1_options:
%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIC}}}}} %(rh_cc1_options_old) %{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}} %(rh_cc1_options_old)

View File

@ -1,7 +1,7 @@
Summary: Red Hat specific rpm configuration files Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config Name: redhat-rpm-config
Version: 9.1.0 Version: 9.1.0
Release: 17%{?dist} Release: 18%{?dist}
# No version specified. # No version specified.
License: GPL+ License: GPL+
Group: Development/System Group: Development/System
@ -69,6 +69,10 @@ rm -rf ${RPM_BUILD_ROOT}
%{_sysconfdir}/rpm/* %{_sysconfdir}/rpm/*
%changelog %changelog
* Thu Sep 22 2011 Adam Jackson <ajax@redhat.com> 9.1.0-18
- redhat-hardened-cc1: Inject -fPIE, not -fPIC.
cf. http://lists.fedoraproject.org/pipermail/devel/2011-September/157365.html
* Fri Sep 16 2011 Adam Jackson <ajax@redhat.com> 9.1.0-17 * Fri Sep 16 2011 Adam Jackson <ajax@redhat.com> 9.1.0-17
- Expose %%_hardening_{c,ld}flags independently to make it easier for - Expose %%_hardening_{c,ld}flags independently to make it easier for
packages to apply them to selected components packages to apply them to selected components