Blame SOURCES/java-1.6.0-openjdk-optflags.patch

b79db3
diff -up ./configure.ac.sav ./configure.ac
b79db3
--- ./configure.ac.sav	2011-07-22 10:28:06.000000000 -0400
b79db3
+++ ./configure.ac	2011-07-22 10:28:20.000000000 -0400
b79db3
@@ -24,6 +24,9 @@
b79db3
 if test "x$CXX" = x; then
b79db3
    AC_MSG_ERROR([No C++ compiler found.])
b79db3
 fi
b79db3
+
b79db3
+ALT_OPT_CFLAGS="$(rpm --eval '%optflags' | sed -e 's/-mtune=generic//1')"
b79db3
+AC_SUBST(ALT_OPT_CFLAGS)
b79db3
 
b79db3
 IT_FIND_TOOL([MAKE], [make])
b79db3
 IT_FIND_TOOL([GZIP], [gzip])