From 0d059ac1e064eaa1d5b61da72d059884992c46ad Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Sep 25 2014 15:01:58 +0000 Subject: Fixing flags --- diff --git a/java-1.8.0-openjdk.spec b/java-1.8.0-openjdk.spec index ac5c83c..4a8e014 100644 --- a/java-1.8.0-openjdk.spec +++ b/java-1.8.0-openjdk.spec @@ -511,10 +511,14 @@ export CFLAGS="$CFLAGS -mieee" %endif EXTRA_CFLAGS="-fstack-protector-strong" +#see https://bugzilla.redhat.com/show_bug.cgi?id=1120792 +EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-devirtualize" # PPC/PPC64 needs -fno-tree-vectorize since -O3 would # otherwise generate wrong code producing segfaults. %ifarch %{power64} ppc EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-tree-vectorize" +# fix rpmlint warnings +EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing" %endif export EXTRA_CFLAGS @@ -549,7 +553,6 @@ bash ../../configure \ --with-libpng=system \ --with-lcms=system \ --with-stdc++lib=dynamic \ - --with-extra-cflags="-fno-devirtualize" \ --with-extra-cxxflags="-fno-devirtualize" \ --with-extra-cflags="$EXTRA_CFLAGS" \ --with-num-cores="$NUM_PROC"