Blob Blame History Raw
Ensure desirable compile flags are used.  We want RPM_OPT_FLAGS rather than
upstream's idea of suitable optimization flags, per Fedora packaging
guidelines, and we *don't* want -ffast-math, per bug #629964.


diff -Naur libdbi-0.8.4.orig/configure libdbi-0.8.4/configure
--- libdbi-0.8.4.orig/configure	2010-08-31 19:22:52.000000000 -0400
+++ libdbi-0.8.4/configure	2012-07-22 19:43:23.073595685 -0400
@@ -11203,7 +11203,7 @@
         case $host in
         *-*-linux*)
                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
-                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99"
+                CFLAGS="-D_REENTRANT -fsigned-char -std=gnu99 $RPM_OPT_FLAGS"
                 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99";;
         sparc-sun-*)
                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"