From b40a386c22a2bd164819b4f398b722357222b7c1 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Tue, 27 Mar 2018 11:20:21 -0400 Subject: [PATCH] Fix library path handling --- msvcc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/msvcc.sh b/msvcc.sh index 3195765..5be250a 100755 --- a/msvcc.sh +++ b/msvcc.sh @@ -1,4 +1,4 @@ -!/bin/sh +#!/bin/sh # ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 @@ -175,14 +175,14 @@ do IFS=\; found= for d in $libpaths; do - d=`cygpath $d` + d=$(cygpath $d) if [ -f "$d/lib${1#-l}.a" ]; then found="lib${1#-l}.a" break; fi done IFS="$IFS_save" - args="$args ${found:-${1#-l}.lib}" + linkargs="$linkargs ${found:-${1#-l}.lib}" shift 1 ;; -W|-Wextra)