Set -DPREFIX for yasm simply whenever extern_prefix is set instead
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 8 Nov 2009 22:39:10 +0000 (22:39 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 8 Nov 2009 22:39:10 +0000 (22:39 +0000)
of hardcoding it based on the object format.

Originally committed as revision 20478 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index ba59e52..65c1528 100755 (executable)
--- a/configure
+++ b/configure
@@ -2232,10 +2232,10 @@ EOF
     YASMFLAGS="-f $objformat -DARCH_$(toupper $subarch)"
     enabled     x86_64        && append YASMFLAGS "-m amd64"
     enabled     pic           && append YASMFLAGS "-DPIC"
+    test -n "$extern_prefix"  && append YASMFLAGS "-DPREFIX"
     case "$objformat" in
         elf) enabled debug && append YASMFLAGS "-g dwarf2" ;;
-        macho64)              append YASMFLAGS "-DPIC -DPREFIX" ;;
-        *)                    append YASMFLAGS "-DPREFIX"  ;;
+        macho64)              append YASMFLAGS "-DPIC" ;;
     esac
     disabled yasm || { check_yasm "pabsw xmm0, xmm0" && enable yasm; }