summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-12-31 05:14:00 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2013-12-31 05:14:00 -0800
commit604cc486bdefb246c984a21dbb30cdaf8b0a7f4d (patch)
treed48cf2c845fd39c8e7a963a261f25a2a7d45663c
parent0204ccf74a729c6cc83f2a5e1be3bc1c728b7ccb (diff)
downloadldid-604cc486bdefb246c984a21dbb30cdaf8b0a7f4d.tar.gz
ldid-604cc486bdefb246c984a21dbb30cdaf8b0a7f4d.tar.zst
ldid-604cc486bdefb246c984a21dbb30cdaf8b0a7f4d.zip
Very minor (critical) changes to the build script.v1.1.2
-rwxr-xr-xios.sh2
-rw-r--r--ldid.cpp2
-rwxr-xr-xmake.sh2
3 files changed, 4 insertions, 2 deletions
diff --git a/ios.sh b/ios.sh
index 3d1608c..77a971b 100755
--- a/ios.sh
+++ b/ios.sh
@@ -2,7 +2,7 @@
set -e -x
-cycc -i2.0 -m10.5 -oldid.arm -- ldid.cpp sha1.c -x c lookup2.c -I .
+cycc -i2.0 -m10.4 -oldid.arm -- ldid.cpp -x c sha1.c lookup2.c -I .
rm -rf _
mkdir -p _/usr/bin
diff --git a/ldid.cpp b/ldid.cpp
index 20fbd64..e28a8d7 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -23,7 +23,9 @@
#include "minimal/string.h"
#include "minimal/mapping.h"
+extern "C" {
#include "sha1.h"
+}
#include <cstring>
#include <string>
diff --git a/make.sh b/make.sh
index 0b54116..03f1b72 100755
--- a/make.sh
+++ b/make.sh
@@ -9,7 +9,7 @@ if [[ -e $sdk ]]; then
flags+=(-mmacosx-version-min=10.4 -isysroot "$sdk")
fi
-for arch in i386 x86_64 ppc armv6; do
+for arch in i386 x86_64; do
if g++ -arch "${arch}" --version &>/dev/null; then
flags+=(-arch "${arch}")
fi