]> git.sesse.net Git - vlc/commitdiff
contribs: don't compile ffmpeg with mdynamic-no-pic on PPC-Macs, as this is a really...
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 13 Apr 2009 21:10:31 +0000 (23:10 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 13 Apr 2009 21:10:43 +0000 (23:10 +0200)
This slows down the compilation speed by 5%, but that should be fine. Pointed by nobody.loopback on the forum.

extras/contrib/src/Makefile
extras/contrib/src/Patches/ffmpeg-darwin-ppc-mdynamic.patch [new file with mode: 0644]

index 5caf082590fc561a226075f825a5b04d2a52f29a..4c40838f24c3cb64540d090dab33db0c25c9cf3a 100644 (file)
@@ -1089,6 +1089,8 @@ ifdef HAVE_BEOS
 endif
 ifdef HAVE_DARWIN_OS_ON_INTEL
        (cd $@; patch -p0 < ../Patches/ffmpeg-macosx-intel-mmx.patch)
+else
+    (cd $@; patch -p0 < ../Patches/ffmpeg-darwin-ppc-mdynamic.patch) 
 endif
 ifdef HAVE_UCLIBC
        patch -p0 < Patches/ffmpeg-svn-uclibc.patch
diff --git a/extras/contrib/src/Patches/ffmpeg-darwin-ppc-mdynamic.patch b/extras/contrib/src/Patches/ffmpeg-darwin-ppc-mdynamic.patch
new file mode 100644 (file)
index 0000000..25ae82a
--- /dev/null
@@ -0,0 +1,12 @@
+Index: configure
+===================================================================
+--- configure  (revision 18349)
++++ configure  (working copy)
+@@ -1758,7 +1758,6 @@
+         add_cflags -pipe
+         check_cflags -force_cpusubtype_ALL
+         check_cflags -Wno-sign-compare
+-        enabled shared || check_cflags -mdynamic-no-pic
+     fi
+ fi