Commit 6d447f18 authored by reimar's avatar reimar

Always add -DPIC to YASM flags when pic is enabled.

This covers the previous case of x86_64 and shared, but also
works with --enable-pic.
For 32 bit x86 it currently makes no difference since x86inc.asm
ignores -DPIC for non-x86_64.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20476 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5cd4b1e5
...@@ -2231,7 +2231,7 @@ EOF ...@@ -2231,7 +2231,7 @@ EOF
YASMFLAGS="-f $objformat -DARCH_$(toupper $subarch)" YASMFLAGS="-f $objformat -DARCH_$(toupper $subarch)"
enabled x86_64 && append YASMFLAGS "-m amd64" enabled x86_64 && append YASMFLAGS "-m amd64"
enabled_all x86_64 shared && append YASMFLAGS "-DPIC" enabled pic && 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" ;; macho64) append YASMFLAGS "-DPIC -DPREFIX" ;;
......
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