ios=false
else
ios=$1
+ shift
fi
if "${ios}"; then
flags+=(-Ilibplist/include)
flags+=(-Ilibplist/libcnary/include)
+flags+=("$@")
+
mkdir -p "${out}"
os=()
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 -lcrypto
if ! "${ios}"; then
ln -sf out/ldid .