--- /dev/null
+Subject: Add -O2 to CFLAGS by default, -O0 if noopt is set.
+Author: Alessio Treglia <alessio@debian.org>
+Forwarded: not-needed
+---
+ configure | 10 +++-------
+ 1 file changed, 3 insertions(+), 7 deletions(-)
+
+--- gpac.orig/configure
++++ gpac/configure
+@@ -1329,7 +1329,7 @@ for opt do
+ ;;
+ --disable-alsa=*) has_alsa="no"
+ ;;
+- --enable-debug) debuginfo="yes"; no_gcc_opt="yes"
++ --enable-debug) debuginfo="yes";
+ ;;
+ --enable-gprof) gprof_build="yes";
+ ;;
+@@ -1643,13 +1643,9 @@ fi
+
+ #GCC opt
+ if test "$no_gcc_opt" = "no"; then
+- if $cc --version | grep 'sbox-arm-linux-gcc (GCC) 3.4.4'
+- then
+- echo "Detected buggy arm GCC (diablo), using -O2"
+ CFLAGS="-O2 $CFLAGS"
+- else
+- CFLAGS="-O3 $CFLAGS"
+- fi
++else
++ CFLAGS="-O0 $CFLAGS"
+ fi
+
+ #look for DX support