]> git.videolan.org Git - x264.git/commitdiff
Add configure check for mingw64 prefixing
authorSteven Walters <kemuri9@gmail.com>
Mon, 13 Sep 2010 22:47:33 +0000 (18:47 -0400)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 16 Sep 2010 10:37:54 +0000 (03:37 -0700)
This compensates for the inconsistent prefixing seen in different versions of the compiler.

configure

index 97405226a8ad14ad79358591f2120c165779b91d..21f5166b53bc8e7df76343f4493e7ddb526f3e00 100755 (executable)
--- a/configure
+++ b/configure
@@ -355,7 +355,8 @@ case $host_cpu in
         LDFLAGS="$LDFLAGS -arch x86_64"
       fi
     elif [ "$SYS" = MINGW ]; then
-      ASFLAGS="$ASFLAGS -f win32 -m amd64 -DPREFIX"
+      ASFLAGS="$ASFLAGS -f win32 -m amd64"
+      cc_check "" "-S" && grep -q "_main:" conftest && ASFLAGS="$ASFLAGS -DPREFIX"
     else
       ASFLAGS="$ASFLAGS -f elf -m amd64"
     fi