]> git.sesse.net Git - vlc/commitdiff
contrib: theora: fix building on OSX 10.9 with clang
authorVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 30 Jun 2014 19:04:32 +0000 (15:04 -0400)
committerFelix Paul Kühne <fkuehne@videolan.org>
Wed, 2 Jul 2014 19:02:06 +0000 (21:02 +0200)
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
contrib/src/theora/libtheora-no-forceaddr.patch [new file with mode: 0644]
contrib/src/theora/rules.mak

diff --git a/contrib/src/theora/libtheora-no-forceaddr.patch b/contrib/src/theora/libtheora-no-forceaddr.patch
new file mode 100644 (file)
index 0000000..547eb7b
--- /dev/null
@@ -0,0 +1,22 @@
+--- a/configure.ac.orig        2014-06-27 16:45:06.000000000 -0400
++++ b/configure.ac     2014-06-27 16:45:23.000000000 -0400
+@@ -180,7 +180,7 @@
+         case $host in 
+         *)
+                 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
+-                CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
++                CFLAGS="-Wall -Wno-parentheses -O3 -fomit-frame-pointer -finline-functions -funroll-loops"
+                 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
+         esac
+ fi
+--- a/configure.orig   2014-06-27 16:57:16.000000000 -0400
++++ b/configure        2014-06-27 16:57:21.000000000 -0400
+@@ -11863,7 +11863,7 @@
+         case $host in
+         *)
+                 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
+-                CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
++                CFLAGS="-Wall -Wno-parentheses -O3 -fomit-frame-pointer -finline-functions -funroll-loops"
+                 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
+         esac
+ fi
index ea4c879aa4f5d74de6d5a400626bc5d65b95a088..1b95b8d6148a220212346a12e0a3a93a9bfe6cd9 100644 (file)
@@ -17,6 +17,9 @@ $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
 libtheora: libtheora-$(THEORA_VERSION).tar.xz .sum-theora
        $(UNPACK)
        $(APPLY) $(SRC)/theora/libtheora-compiler-differentiation.patch
+ifdef HAVE_MACOSX
+       $(APPLY) $(SRC)/theora/libtheora-no-forceaddr.patch
+endif
        $(UPDATE_AUTOCONFIG)
        $(MOVE)