From f867649507ed159828be038a5651734a794fc505 Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Sun, 7 Apr 2019 12:19:28 -0400 Subject: [PATCH] Add -O2 to CFLAGS by default, -O0 if noopt is set. Gbp-Pq: Name gcc-optflags.patch --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 485bfe2..adab0ca 100755 --- a/configure +++ b/configure @@ -360,7 +360,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 -- 2.30.2