From 604cc486bdefb246c984a21dbb30cdaf8b0a7f4d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 31 Dec 2013 05:14:00 -0800 Subject: [PATCH 1/1] Very minor (critical) changes to the build script. --- ios.sh | 2 +- ldid.cpp | 2 ++ make.sh | 2 +- 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 #include 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 -- 2.45.2