aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2008-08-16 17:18:23 +0000
committerRobert Swain <robert.swain@gmail.com>2008-08-16 17:18:23 +0000
commit1b0f6fb830f330a550966cfa35808086693d14f5 (patch)
tree89dcb940c533f7ded6e243ec7c3adb87fbee6e2d /configure
parentc50da3ad6c5ee316bafd38170172dcc6c3163764 (diff)
downloadffmpeg-1b0f6fb830f330a550966cfa35808086693d14f5.tar.gz
Use correct asm object type and necessary -DPIC for yasm on 64-bit Darwin
Thread: [FFmpeg-devel] fft_mmx.asm yasm 64bit build broken Patch by 'D' (lessen42 gmail com) Originally committed as revision 14791 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 479105cf52..6195d81dce 100755
--- a/configure
+++ b/configure
@@ -1262,6 +1262,7 @@ case $target_os in
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
FFSERVERLDFLAGS=-Wl,-bind_at_load
objformat="macho"
+ enabled x86_64 && objformat="macho64"
;;
mingw32*)
target_os=mingw32
@@ -1561,6 +1562,7 @@ EOF
enabled_all x86_64 shared && append YASMFLAGS "-DPIC"
case "$objformat" in
elf) enabled debug && append YASMFLAGS "-g dwarf2" ;;
+ macho64) append YASMFLAGS "-DPIC -DPREFIX" ;;
*) append YASMFLAGS "-DPREFIX" ;;
esac
check_yasm "pabsw xmm0, xmm0" && enable yasm