[vlc-commits] contrib: fix vorbis build on osx

Rafaël Carré git at videolan.org
Fri Sep 7 00:26:05 CEST 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Sep  7 00:25:35 2012 +0200| [e7179e2a2f3d3dd6d1edf16504efc0aee346901d] | committer: Rafaël Carré

contrib: fix vorbis build on osx

gcc -O4 is apparently not recognized anymore

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

 contrib/src/vorbis/osx.patch |   13 +++++++++++++
 contrib/src/vorbis/rules.mak |    2 ++
 2 files changed, 15 insertions(+)

diff --git a/contrib/src/vorbis/osx.patch b/contrib/src/vorbis/osx.patch
new file mode 100644
index 0000000..8ae4812
--- /dev/null
+++ b/contrib/src/vorbis/osx.patch
@@ -0,0 +1,13 @@
+--- libvorbis/configure.ac.orig	2012-09-07 00:17:47.000000000 +0200
++++ libvorbis/configure.ac	2012-09-07 00:18:01.000000000 +0200
+@@ -199,8 +199,8 @@
+ 		PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
+ 	*-*-darwin*)
+ 		DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
+-		CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
+-		PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
++		CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
++		PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
+ 	*-*-os2*)
+ 		# Use -W instead of -Wextra because gcc on OS/2 is an old version.
+ 		DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
diff --git a/contrib/src/vorbis/rules.mak b/contrib/src/vorbis/rules.mak
index 3545f61..34f2e0c 100644
--- a/contrib/src/vorbis/rules.mak
+++ b/contrib/src/vorbis/rules.mak
@@ -25,12 +25,14 @@ $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz:
 
 libvorbis: libvorbis-$(VORBIS_VERSION).tar.xz .sum-vorbis
 	$(UNPACK)
+	$(APPLY) $(SRC)/vorbis/osx.patch
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
 
 DEPS_vorbis = ogg $(DEPS_ogg)
 
 .vorbis: libvorbis
+	$(RECONF) -Im4
 	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-docs --disable-examples --disable-oggtest
 	cd $< && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list