[x264-devel] commit: Add configure check for mingw64 prefixing (Steven Walters )

git at videolan.org git at videolan.org
Sun Sep 19 03:19:53 CEST 2010


x264 | branch: master | Steven Walters <kemuri9 at gmail.com> | Mon Sep 13 18:47:33 2010 -0400| [416461a5667436c39330cd79740ecef1f27b5bfe] | committer: Jason Garrett-Glaser 

Add configure check for mingw64 prefixing
This compensates for the inconsistent prefixing seen in different versions of the compiler.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=416461a5667436c39330cd79740ecef1f27b5bfe
---

 configure |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 9740522..21f5166 100755
--- 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



More information about the x264-devel mailing list