use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe
Fallback to "link" in the path if the one next to cl is not found. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
a54e720e02
commit
c9edbe4af9
9
compat/windows/mslink
Executable file
9
compat/windows/mslink
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
LINK_EXE_PATH=$(dirname "$(command -v cl)")/link
|
||||||
|
if [ -x "$LINK_EXE_PATH" ]; then
|
||||||
|
"$LINK_EXE_PATH" $@
|
||||||
|
else
|
||||||
|
link $@
|
||||||
|
fi
|
||||||
|
exit $?
|
2
configure
vendored
2
configure
vendored
@ -2633,7 +2633,7 @@ case "$toolchain" in
|
|||||||
else
|
else
|
||||||
cc_default="c99wrap cl"
|
cc_default="c99wrap cl"
|
||||||
fi
|
fi
|
||||||
ld_default="link"
|
ld_default="$source_path/compat/windows/mslink"
|
||||||
nm_default="dumpbin -symbols"
|
nm_default="dumpbin -symbols"
|
||||||
ar_default="lib"
|
ar_default="lib"
|
||||||
target_os_default="win32"
|
target_os_default="win32"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user