Add -O2 to CFLAGS by default, -O0 if noopt is set.
authorAlessio Treglia <alessio@debian.org>
Sat, 21 Nov 2020 22:13:44 +0000 (17:13 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sat, 21 Nov 2020 22:13:44 +0000 (17:13 -0500)
Forwarded: not-needed

Forwarded: not-needed
Gbp-Pq: Name gcc-optflags.patch

configure

index de8ea9965dfeb16dbc8cfc03e0d9b721a46b6174..e98903eae3fb1dee0ff61b06ee13eb2683ac6995 100755 (executable)
--- a/configure
+++ b/configure
@@ -365,7 +365,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"
             ;;
@@ -708,7 +708,7 @@ fi
 
 #GCC opt
 if test "$no_gcc_opt" = "no"; then
-    CFLAGS="-O3 $CFLAGS"
+    CFLAGS="-O2 $CFLAGS"
 else
     CFLAGS="-O0 $CFLAGS"
 fi