From 24cfcbe19357796030293d7d20cb026b793720c7 Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Fri, 15 Feb 2019 06:43:22 -0500 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