This commit is contained in:
Jakub Jelinek 2012-08-10 10:58:07 +02:00
parent b9e26d4d4b
commit 1a2316dc70

View File

@ -117,9 +117,8 @@ ar r libgcc/32/libgcc_s.a
ar r libgcc/libgcc_s_32.a ar r libgcc/libgcc_s_32.a
CC="gcc -B `pwd`/libgcc/" CC="gcc -B `pwd`/libgcc/"
%endif %endif
%configure CC="$CC" \ OPTFLAGS="`echo " %{optflags} " | sed 's/ -m\(64\|3[21]\) / /g;s/ -fexceptions / /g;s/ -fstack-protector / / g;s/ -Wp,-D_FORTIFY_SOURCE=2 / /g;s/^ //;s/ $//'`"
CFLAGS="`echo " %{optflags} " | sed 's/ -m\(64\|3[21]\) / /g;s/ \(-fexceptions\|-fstack-protector\|-Wp,-D_FORTIFY_SOURCE=2\) / /g;s/^ //;s/ $//'`" \ %configure CC="$CC" CFLAGS="$OPTFLAGS" CXXFLAGS="$OPTFLAGS" \
CXXFLAGS="`echo " %{optflags} " | sed 's/ -m\(64\|3[21]\) / /g;s/ \(-fexceptions\|-fstack-protector\|-Wp,-D_FORTIFY_SOURCE=2\) / /g;s/^ //;s/ $//'`" \
%ifarch %{ix86} x86_64 ppc ppc64 %ifarch %{ix86} x86_64 ppc ppc64
--with-mpicc=%{_libdir}/openmpi/bin/mpicc \ --with-mpicc=%{_libdir}/openmpi/bin/mpicc \
%endif %endif