[vlc-commits] contrib: libmad: do not mess with GCC (antiquated) optimization flags

Rémi Denis-Courmont git at videolan.org
Tue Aug 2 17:06:55 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  2 12:58:17 2011 +0300| [09b142d509ace2ea1941a044916f3f7ec820772c] | committer: Rémi Denis-Courmont

contrib: libmad: do not mess with GCC (antiquated) optimization flags

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09b142d509ace2ea1941a044916f3f7ec820772c
---

 contrib/src/mad/mad-noopt.patch |   12 ++++++++++++
 contrib/src/mad/rules.mak       |    3 +++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/contrib/src/mad/mad-noopt.patch b/contrib/src/mad/mad-noopt.patch
new file mode 100644
index 0000000..08c3a6a
--- /dev/null
+++ b/contrib/src/mad/mad-noopt.patch
@@ -0,0 +1,12 @@
+diff -Nru libmad.orig//configure.ac libmad/configure.ac
+--- libmad.orig//configure.ac	2011-08-02 12:39:34.000000000 +0300
++++ libmad/configure.ac	2011-08-02 12:52:11.000000000 +0300
+@@ -122,7 +122,7 @@
+     esac
+ done
+ 
+-if test "$GCC" = yes
++if false
+ then
+     if test -z "$arch"
+     then
diff --git a/contrib/src/mad/rules.mak b/contrib/src/mad/rules.mak
index 76fc65a..4eb53d2 100644
--- a/contrib/src/mad/rules.mak
+++ b/contrib/src/mad/rules.mak
@@ -21,9 +21,12 @@ ifdef HAVE_MACOSX
 		-e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' \
 		-i.orig configure
 endif
+	$(APPLY) $(SRC)/mad/mad-noopt.patch
 	$(MOVE)
 
 .mad: libmad
+	touch libmad/NEWS libmad/AUTHORS libmad/ChangeLog
+	$(RECONF)
 	cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3 $(NOTHUMB)" ./configure $(HOSTCONF)
 	cd $< && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list