Browse Source

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>
tags/n2.8
Steve Lhomme Martin Storsjö 9 years ago
parent
commit
c9edbe4af9
2 changed files with 10 additions and 1 deletions
  1. +9
    -0
      compat/windows/mslink
  2. +1
    -1
      configure

+ 9
- 0
compat/windows/mslink View 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 $?

+ 1
- 1
configure View File

@@ -2633,7 +2633,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"


Loading…
Cancel
Save