summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2018-03-25 08:56:51 -0400
committerAnthony Green <green@moxielogic.com>2018-03-25 08:56:51 -0400
commit9edc54394f87ac28862dff4bd7a9a0328698f730 (patch)
treeb65c8892a451f9556589bc9b70f3c7dceb092000
parent073e30ffe677b4ef3e830b0f6beb3887520a0ad2 (diff)
downloadlibffi-ios.tar.gz
Add -L and -l optionsios
-rwxr-xr-xmsvcc.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/msvcc.sh b/msvcc.sh
index eef61c8..616e67c 100755
--- a/msvcc.sh
+++ b/msvcc.sh
@@ -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