From b4b00eca04d832df59d557ed6ada7f0dfe87cfd4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Jan 25 2014 08:03:26 +0000 Subject: Hack around libtool issue for hardened build for now (#978949) --- diff --git a/macros b/macros index 50509fb..6994751 100644 --- a/macros +++ b/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} \\\