summaryrefslogtreecommitdiffstats
path: root/compat/windows
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@gmail.com>2015-07-24 09:38:04 +0200
committerMartin Storsjö <martin@martin.st>2015-07-24 18:21:22 +0300
commitc9edbe4af901e9bc9f05a62319637f9760df9a4a (patch)
tree8a0b11a15a18af06aea4efbed821335820d1536b /compat/windows
parenta54e720e0289433d6bc3f7ba0a37fa5cabfaeea9 (diff)
downloadffmpeg-streaming-c9edbe4af901e9bc9f05a62319637f9760df9a4a.zip
ffmpeg-streaming-c9edbe4af901e9bc9f05a62319637f9760df9a4a.tar.gz
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>
Diffstat (limited to 'compat/windows')
-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