diff options
author | Anthony Green <green@moxielogic.com> | 2018-03-25 08:56:51 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2018-03-25 08:56:51 -0400 |
commit | 9edc54394f87ac28862dff4bd7a9a0328698f730 (patch) | |
tree | b65c8892a451f9556589bc9b70f3c7dceb092000 /msvcc.sh | |
parent | 073e30ffe677b4ef3e830b0f6beb3887520a0ad2 (diff) | |
download | libffi-ios.tar.gz |
Add -L and -l optionsios
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 |