]> git.saurik.com Git - ldid.git/commitdiff
Hash agility update required OpenSSL 1.0.0. *sigh*
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 29 Jan 2019 01:24:46 +0000 (17:24 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 29 Jan 2019 01:24:46 +0000 (17:24 -0800)
make.sh

diff --git a/make.sh b/make.sh
index d574ae7b898e48cf88b2fd94e36dcc68f133a816..b836d72281241083c8d1d94c63c16a973a3494f5 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -25,7 +25,7 @@ if which xcrun &>/dev/null; then
     flags=(xcrun -sdk macosx g++)
     flags+=(-mmacosx-version-min=10.4)
 
-    for arch in i386 x86_64; do
+    for arch in i386; do
         flags+=(-arch "${arch}")
     done
 else
@@ -40,6 +40,7 @@ flags+=(-I.)
 flags+=(-I"${sdk}"/usr/include/libxml2)
 flags+=(-Ilibplist/include)
 flags+=(-Ilibplist/libcnary/include)
+flags+=(-I../lib-osx/openssl/include)
 
 flags+=("$@")
 
@@ -58,7 +59,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 -lxml2 -framework Security -lcrypto
+"${flags[@]}" -o "${out}"/ldid "${out}"/ldid.o "${os[@]}" -x c lookup2.c -lxml2 -framework Security -L../lib-osx/openssl -lcrypto
 
 if ! "${ios}"; then
     ln -sf out/ldid .