]> git.saurik.com Git - ldid.git/commitdiff
Very minor (critical) changes to the build script. v1.1.2
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 31 Dec 2013 13:14:00 +0000 (05:14 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 31 Dec 2013 13:14:00 +0000 (05:14 -0800)
ios.sh
ldid.cpp
make.sh

diff --git a/ios.sh b/ios.sh
index 3d1608ce2e9a66d86e04c7b9261427e8effbab64..77a971b918265d67cb576f947d17b44f6924afc4 100755 (executable)
--- 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
index 20fbd64117decfd49175ca71e4c7304e6662669c..e28a8d7b6f5b3ac2a77817e54811289fac3ba852 100644 (file)
--- 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 0b541163809491c58ff920cc49bcbb57d400f6cb..03f1b72ccb32fe64b9ec76a7151da0ea084bc6e0 100755 (executable)
--- 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