mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
daf6bce71b
commit
58ed7b6328
2 changed files with 10 additions and 1 deletions
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
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue