diff options
author | Anthony Green <green@moxielogic.com> | 2018-03-27 08:25:26 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2018-03-27 08:25:26 -0400 |
commit | f318bb63c5dc623d5a69ffc4a59a330050cac567 (patch) | |
tree | d9b9e5db832a425955c3928cea0f96fea9b5a679 /msvcc.sh | |
parent | 4f0c9cb39b7599312729278380ce63247bca226b (diff) | |
download | libffi-f318bb63c5dc623d5a69ffc4a59a330050cac567.tar.gz |
Fix library path handling
Diffstat (limited to 'msvcc.sh')
-rwxr-xr-x | msvcc.sh | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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=\; |