From: Alessio Treglia Date: Tue, 7 Mar 2023 11:41:07 +0000 (-0500) Subject: Add -O2 to CFLAGS by default, -O0 if noopt is set. X-Git-Tag: archive/raspbian/2.0.0+dfsg1-4+rpi1^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=853e29535ca3dacbf227a736787ae296dd1353a2;p=gpac.git Add -O2 to CFLAGS by default, -O0 if noopt is set. Forwarded: not-needed Forwarded: not-needed Gbp-Pq: Name gcc-optflags.patch --- diff --git a/configure b/configure index 25d67dc..2b34cb5 100755 --- a/configure +++ b/configure @@ -378,7 +378,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" ;; @@ -743,7 +743,7 @@ fi #GCC opt if test "$no_gcc_opt" = "no"; then - CFLAGS="-O3 $CFLAGS" + CFLAGS="-O2 $CFLAGS" else CFLAGS="-O0 $CFLAGS" fi