[SCM] gpac/master: Add -O2 to CFLAGS, use -O0 when optimizations are disabled.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Sat Feb 11 11:08:38 UTC 2012
The following commit has been merged in the master branch:
commit f4557e6c741d69f61a188f4e0c657a404676c3a6
Author: Alessio Treglia <alessio at debian.org>
Date: Sat Feb 11 12:04:12 2012 +0100
Add -O2 to CFLAGS, use -O0 when optimizations are disabled.
diff --git a/debian/patches/gcc-optflags.patch b/debian/patches/gcc-optflags.patch
new file mode 100644
index 0000000..d375410
--- /dev/null
+++ b/debian/patches/gcc-optflags.patch
@@ -0,0 +1,34 @@
+Subject: Add -O2 to CFLAGS by default, -O0 if noopt is set.
+Author: Alessio Treglia <alessio at 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
diff --git a/debian/patches/series b/debian/patches/series
index 6f9f8a3..b4608cf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ soname-fix.patch
mp4box-manpage-fix.patch
multiarch.patch
dfsg.patch
+gcc-optflags.patch
--
gpac packaging
More information about the pkg-multimedia-commits
mailing list