Browse code

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

David Conrad authored on 2008/08/17 02:18:23
Showing 1 changed files
... ...
@@ -1262,6 +1262,7 @@ case $target_os in
1262 1262
         SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
1263 1263
         FFSERVERLDFLAGS=-Wl,-bind_at_load
1264 1264
         objformat="macho"
1265
+        enabled x86_64 && objformat="macho64"
1265 1266
         ;;
1266 1267
     mingw32*)
1267 1268
         target_os=mingw32
... ...
@@ -1561,6 +1562,7 @@ EOF
1561 1561
     enabled_all x86_64 shared && append YASMFLAGS "-DPIC"
1562 1562
     case "$objformat" in
1563 1563
         elf) enabled debug && append YASMFLAGS "-g dwarf2" ;;
1564
+        macho64)              append YASMFLAGS "-DPIC -DPREFIX" ;;
1564 1565
         *)                    append YASMFLAGS "-DPREFIX"  ;;
1565 1566
     esac
1566 1567
     check_yasm "pabsw xmm0, xmm0" && enable yasm