diff options
author | jstebbins <[email protected]> | 2009-11-27 20:24:26 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-11-27 20:24:26 +0000 |
commit | 2e67232172e322cae20434318dffec1426822d69 (patch) | |
tree | 90d3ce3c6c542b0f06d73d223d825380435d96d0 /contrib/ffmpeg/P02-darwin-pic.patch | |
parent | 63d5431c5f4c199ceb194160136aed5a6596d18e (diff) |
fix ffmpeg build on osx i386
gcc 4.2 on osx defines the built-in macro __PIC__ which ffmpeg's configure
uses to determine if it should enable pic. Enabling pic uses extra
registers which causes some inline asm to fail due to lack of available
registers.
I disabled the normal check and forced pic enabled for x86_64 since it
requires it.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2987 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib/ffmpeg/P02-darwin-pic.patch')
-rw-r--r-- | contrib/ffmpeg/P02-darwin-pic.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/ffmpeg/P02-darwin-pic.patch b/contrib/ffmpeg/P02-darwin-pic.patch new file mode 100644 index 000000000..3368da8be --- /dev/null +++ b/contrib/ffmpeg/P02-darwin-pic.patch @@ -0,0 +1,20 @@ +diff -Naur ffmpeg-r20602.orig/configure ffmpeg-r20602/configure +--- ffmpeg-r20602.orig/configure 2009-11-24 15:17:19.000000000 -0800 ++++ ffmpeg-r20602/configure 2009-11-27 12:02:03.659012744 -0800 +@@ -1913,7 +1913,7 @@ + + enable $arch $subarch + enabled spic && enable pic +-check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic ++#check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic + + # OS specific + case $target_os in +@@ -1982,6 +1982,7 @@ + FFSERVERLDFLAGS=-Wl,-bind_at_load + objformat="macho" + enabled x86_64 && objformat="macho64" ++ enabled x86_64 && enable pic + enabled_any pic shared || + { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; } + ;; |