summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@gmail.com>2015-07-24 09:38:04 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-24 20:02:32 +0200
commit58ed7b632842f3fedbe737c3945cabc56bab2f47 (patch)
treec03249b25e1695d23b351ce44d6beef0e8b23e7f /compat
parentdaf6bce71be9534628a72baa5d1f1f0db281f5e5 (diff)
downloadffmpeg-streaming-58ed7b632842f3fedbe737c3945cabc56bab2f47.zip
ffmpeg-streaming-58ed7b632842f3fedbe737c3945cabc56bab2f47.tar.gz
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>
Diffstat (limited to 'compat')
-rwxr-xr-xcompat/windows/mslink9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/windows/mslink b/compat/windows/mslink
new file mode 100755
index 0000000..07b2b3e
--- /dev/null
+++ b/compat/windows/mslink
@@ -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 $?
OpenPOWER on IntegriCloud