Commit 58ed7b63 authored by Steve Lhomme's avatar Steve Lhomme Committed by Michael Niedermayer

use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe

favor link over link.exe in case some wrapper script already exists
fallback to "link" in the path if the one next to cl is not found
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent daf6bce7
#!/bin/sh
LINK_EXE_PATH=$(dirname "$(command -v cl)")/link
if [ -x "$LINK_EXE_PATH" ]; then
"$LINK_EXE_PATH" $@
else
link $@
fi
exit $?
......@@ -3183,7 +3183,7 @@ case "$toolchain" in
else
cc_default="c99wrap cl"
fi
ld_default="link"
ld_default="$source_path/compat/windows/mslink"
nm_default="dumpbin -symbols"
ar_default="lib"
target_os_default="win32"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment