Blame SOURCES/libdbi-cflags.patch

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