Hack around libtool issue for hardened build for now (#978949)

This commit is contained in:
Kevin Fenzi 2013-07-24 16:20:05 -06:00 committed by Ville Skyttä
parent 76c839e23e
commit b4b00eca04

9
macros
View File

@ -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} \\\