Blame SOURCES/libdbi-cflags.patch

2426d7
Ensure desirable compile flags are used.  We want RPM_OPT_FLAGS rather than
2426d7
upstream's idea of suitable optimization flags, per Fedora packaging
2426d7
guidelines, and we *don't* want -ffast-math, per bug #629964.
2426d7
2426d7
2426d7
diff -Naur libdbi-0.8.4.orig/configure libdbi-0.8.4/configure
2426d7
--- libdbi-0.8.4.orig/configure	2010-08-31 19:22:52.000000000 -0400
2426d7
+++ libdbi-0.8.4/configure	2012-07-22 19:43:23.073595685 -0400
2426d7
@@ -11203,7 +11203,7 @@
2426d7
         case $host in
2426d7
         *-*-linux*)
2426d7
                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
2426d7
-                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99"
2426d7
+                CFLAGS="-D_REENTRANT -fsigned-char -std=gnu99 $RPM_OPT_FLAGS"
2426d7
                 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99";;
2426d7
         sparc-sun-*)
2426d7
                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"