redhat-rpm-config/redhat-rpm-config-9.1.0-libtool-hardened-build.patch
Kevin Fenzi e6fe460e84 Make docdirs unversioned on Fedora 20+ (#986871)
- Hack around libtool issue for hardened build for now (#978949)
2013-07-24 16:20:05 -06:00

26 lines
783 B
Diff

--- redhat-rpm-config-9.1.0.orig/macros
+++ redhat-rpm-config-9.1.0/macros
@@ -28,7 +28,7 @@
# ---- configure and makeinstall.
#
%_configure ./configure
-%configure \
+%configure(--:-:ChnqV) \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \
@@ -52,7 +52,12 @@
--localstatedir=%{_localstatedir} \\\
--sharedstatedir=%{_sharedstatedir} \\\
--mandir=%{_mandir} \\\
- --infodir=%{_infodir}
+ --infodir=%{_infodir} \\\
+ %{**} ; \
+ [[ -f ./libtool && "x%{?%_hardened_ldflags}" != "x" ]] && \\\
+ sed -i \\\
+ -e 's! \\\\\\$compiler_flags !&%{?%_hardened_ldflags} !g' \\\
+ ./libtool ;
%makeinstall \
%{__make} \\\