Add -O2 to CFLAGS by default, -O0 if noopt is set.
authorDebian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Fri, 25 May 2018 13:56:56 +0000 (09:56 -0400)
committerJames Cowgill <jcowgill@debian.org>
Fri, 25 May 2018 13:56:56 +0000 (09:56 -0400)
Gbp-Pq: Name gcc-optflags.patch

configure

index 55d7b4cace96c114c275eb1f007015071a621cd7..ca407bd153030fe63c7f421543e4fb2e58d1829e 100755 (executable)
--- a/configure
+++ b/configure
@@ -351,7 +351,7 @@ for opt do
             ;;
         --cpu=*) cpu=`echo $opt | cut -d '=' -f 2`
             ;;
-        --enable-debug) debuginfo="yes"; no_gcc_opt="yes"
+        --enable-debug) debuginfo="yes";
             ;;
         --disable-opt) no_gcc_opt="yes"
             ;;
@@ -686,7 +686,7 @@ fi
 
 #GCC opt
 if test "$no_gcc_opt" = "no"; then
-    CFLAGS="-O3 $CFLAGS"
+    CFLAGS="-O2 $CFLAGS"
 else
     CFLAGS="-O0 $CFLAGS"
 fi