Commit 68c85c0a authored by superdump's avatar superdump

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)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14791 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9676286c
...@@ -1262,6 +1262,7 @@ case $target_os in ...@@ -1262,6 +1262,7 @@ case $target_os in
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)' SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
FFSERVERLDFLAGS=-Wl,-bind_at_load FFSERVERLDFLAGS=-Wl,-bind_at_load
objformat="macho" objformat="macho"
enabled x86_64 && objformat="macho64"
;; ;;
mingw32*) mingw32*)
target_os=mingw32 target_os=mingw32
...@@ -1561,6 +1562,7 @@ EOF ...@@ -1561,6 +1562,7 @@ EOF
enabled_all x86_64 shared && append YASMFLAGS "-DPIC" enabled_all x86_64 shared && append YASMFLAGS "-DPIC"
case "$objformat" in case "$objformat" in
elf) enabled debug && append YASMFLAGS "-g dwarf2" ;; elf) enabled debug && append YASMFLAGS "-g dwarf2" ;;
macho64) append YASMFLAGS "-DPIC -DPREFIX" ;;
*) append YASMFLAGS "-DPREFIX" ;; *) append YASMFLAGS "-DPREFIX" ;;
esac esac
check_yasm "pabsw xmm0, xmm0" && enable yasm check_yasm "pabsw xmm0, xmm0" && enable yasm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment