From 1a6921f6b1f4655a59263ba22aa9e3210143c49b Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Fri, 19 Apr 2019 16:16:19 +0200
Subject: [PATCH] configure: Add .exe suffix to some Windows executable names.
Allows msvc compilation from wsl.
---
compat/windows/mslink | 2 +-
configure | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
@@ -4,6 +4,6 @@ LINK_EXE_PATH=$(dirname "$(command -v cl)")/link
if [ -x "$LINK_EXE_PATH" ]; then
"$LINK_EXE_PATH" $@
else
- link $@
+ link.exe $@
fi
exit $?
@@ -4114,14 +4114,14 @@ case "$toolchain" in
# versions that require the converter (MSVC 2010 and 2012).
cl_major_ver=$(cl 2>&1 | sed -n 's/.*Version \([[:digit:]]\{1,\}\)\..*/\1/p')
if [ -z "$cl_major_ver" ] || [ $cl_major_ver -ge 18 ]; then
- cc_default="cl"
- cxx_default="cl"
+ cc_default="cl.exe"
+ cxx_default="cl.exe"
else
die "Unsupported MSVC version (2013 or newer required)"
fi
ld_default="$source_path/compat/windows/mslink"
- nm_default="dumpbin -symbols"
- ar_default="lib"
+ nm_default="dumpbin.exe -symbols"
+ ar_default="lib.exe"
case "$arch" in
aarch64|arm64)
as_default="armasm64"
--
1.7.10.4