Package: gpac / 0.7.1+dfsg1-3

gcc-optflags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Subject: Add -O2 to CFLAGS by default, -O0 if noopt is set.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: not-needed
---
 configure |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 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