diff options
author | Anthony Green <green@moxielogic.com> | 2018-03-27 05:11:52 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2018-03-27 05:11:52 -0400 |
commit | b394947518fb15887802fe3bc7f0a337c495d65d (patch) | |
tree | 7158716eb7afffcd069acf011dedc8d1c9575c49 /msvcc.sh | |
parent | 33da6c075299317885385f19680b58a1e9feab5e (diff) | |
download | libffi-b394947518fb15887802fe3bc7f0a337c495d65d.tar.gz |
Add -L and -l support
Diffstat (limited to 'msvcc.sh')
-rwxr-xr-x | msvcc.sh | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -156,6 +156,25 @@ do includes="$includes $1" shift 1 ;; + -L*) + path=`echo "$1" | sed 's/-L//'` + args+=("/LIBPATH:$path") + ;; + -l*) + IFS_save="$IFS" + IFS=\; + found= + for d in $LIB; do + d="$(echo $d | sed -e 's,\\,/,g')" + if [ -f "$d/lib${1#-l}.lib" ]; then + found="lib${1#-l}.lib" + break; + fi + done + IFS="$IFS_save" + args="$args ${found:-${1#-l}.lib}" + shift 1 + ;; -W|-Wextra) # TODO map extra warnings shift 1 |