From f318bb63c5dc623d5a69ffc4a59a330050cac567 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Tue, 27 Mar 2018 08:25:26 -0400 Subject: [PATCH] Fix library path handling --- msvcc.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/msvcc.sh b/msvcc.sh index 50e80fea..bdb12560 100755 --- a/msvcc.sh +++ b/msvcc.sh @@ -158,11 +158,16 @@ do includes="$includes -I$p" shift 1 ;; + -L) + p=$(cygpath -m $2) + args="$args /LIBPATH:$p" + shift 2 + ;; -L*) - path=`echo "$1" | sed 's/-L//'` - args+=("/LIBPATH:$path") - shift 1 - ;; + p=$(cygpath -m ${1#-L}) + args="$args /LIBPATH:$p" + shift 1 + ;; -l*) IFS_save="$IFS" IFS=\;