From 1e00bca1f24ae8e09c617780c1db76f4e6fd9c48 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 10 Aug 2012 11:55:34 +0200 Subject: [PATCH] 3.8.0-1 --- valgrind.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/valgrind.spec b/valgrind.spec index 22ee582..d50ad4a 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -117,7 +117,11 @@ ar r libgcc/32/libgcc_s.a ar r libgcc/libgcc_s_32.a CC="gcc -B `pwd`/libgcc/" %endif -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/ $//'`" +# Filter out some flags that cause lots of valgrind test failures. +# Also filter away -O2, valgrind adds it wherever suitable, but +# not for tests which should be -O0, as they aren't meant to be +# compiled with -O2 unless explicitely requested. +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/ -O2 / /g;s/^ //;s/ $//'`" %configure CC="$CC" CFLAGS="$OPTFLAGS" CXXFLAGS="$OPTFLAGS" \ %ifarch %{ix86} x86_64 ppc ppc64 --with-mpicc=%{_libdir}/openmpi/bin/mpicc \