]> git.saurik.com Git - cycript.git/commitdiff
Finally managed to target iOS 2.0 fully correctly.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jan 2014 13:56:12 +0000 (05:56 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jan 2014 13:56:12 +0000 (05:56 -0800)
xcode.h [new file with mode: 0644]
xcode.sh

diff --git a/xcode.h b/xcode.h
new file mode 100644 (file)
index 0000000..5381488
--- /dev/null
+++ b/xcode.h
@@ -0,0 +1,8 @@
+#if defined(__cplusplus)
+#include <bits/c++config.h>
+#if defined(__arm__) && defined(__thumb__)
+#undef _GLIBCXX_ATOMIC_BUILTINS
+#endif
+#undef __TARGETING_4_0_DYLIB
+#define __TARGETING_4_0_DYLIB 1
+#endif
index 1ad065029b0c986d56022d74d0a704fbe82c6184..45b2ea94e5fc9fa347ccbb70e703c0815a399de3 100755 (executable)
--- a/xcode.sh
+++ b/xcode.sh
@@ -98,6 +98,7 @@ for arch in armv6 armv7 armv7s arm64; do
     else
         flg+=(LTLIBAPR="../sysroot.ios/usr/lib/libapr-1.dylib")
         flg+=(LTLIBGCC="-lgcc_s.1")
+        cpf+=" -include ${PWD}/xcode.h"
         cpf+=" -mllvm -arm-reserve-r9"
         cpf+=" -I../sysroot.ios/usr/include -I../sysroot.ios/usr/include/apr-1"
         ldf+=" -L../sysroot.ios/usr/lib"