From 58ed7b632842f3fedbe737c3945cabc56bab2f47 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 24 Jul 2015 09:38:04 +0200 Subject: 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 --- compat/windows/mslink | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 compat/windows/mslink (limited to 'compat/windows') diff --git a/compat/windows/mslink b/compat/windows/mslink new file mode 100755 index 0000000000..07b2b3e378 --- /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 $? -- cgit v1.2.3