On Wed, 22 Jul 2015, Steve Lhomme wrote:

use cygpath to determine the path of link.exe next to cl.exe, when available
---
configure | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 16bf852..5154d6e 100755
--- a/configure
+++ b/configure
@@ -2633,7 +2633,11 @@ case "$toolchain" in
        else
            cc_default="c99wrap cl"
        fi
-        ld_default="link"
+        if test -x `which cygpath`; then
+          ld_default=`cygpath -d "\`which cl.exe | sed 
"s/cl.exe/link.exe/g"\`"`
+        else
+          ld_default="link.exe"
+        fi

Please don't change the default/fallback case from "link" to "link.exe" here. In a msvc/wine setup, it really does matter since I might have shell script wrappers called "cl" and "link" but not "cl.exe" and "link.exe"; from the build system point of view, I expect that the build system will try to call "cl" and "link" and I (as the provider of the surrounding environment) make sure that "cl" and "link" end up calling the right binaries.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to