]> git.saurik.com Git - ldid.git/blobdiff - make.sh
Define local functions static to avoid collisions.
[ldid.git] / make.sh
diff --git a/make.sh b/make.sh
index da019ac9b3c53615408423c17974bc25913c3087..d574ae7b898e48cf88b2fd94e36dcc68f133a816 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -7,6 +7,7 @@ if [[ $# == 0 ]]; then
     ios=false
 else
     ios=$1
+    shift
 fi
 
 if "${ios}"; then
@@ -40,6 +41,8 @@ flags+=(-I"${sdk}"/usr/include/libxml2)
 flags+=(-Ilibplist/include)
 flags+=(-Ilibplist/libcnary/include)
 
+flags+=("$@")
+
 mkdir -p "${out}"
 os=()
 
@@ -55,7 +58,7 @@ done
 set -x
 
 "${flags[@]}" -c -std=c++11 -o "${out}"/ldid.o ldid.cpp
-"${flags[@]}" -o "${out}"/ldid "${out}"/ldid.o "${os[@]}" -x c lookup2.c -x c sha1.c -lxml2
+"${flags[@]}" -o "${out}"/ldid "${out}"/ldid.o "${os[@]}" -x c lookup2.c -lxml2 -framework Security -lcrypto
 
 if ! "${ios}"; then
     ln -sf out/ldid .