From a1cda481b0cd31cde3acda8eb6ba7dd653adebd3 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 12 Jan 2014 05:56:12 -0800 Subject: [PATCH] Finally managed to target iOS 2.0 fully correctly. --- xcode.h | 8 ++++++++ xcode.sh | 1 + 2 files changed, 9 insertions(+) create mode 100644 xcode.h diff --git a/xcode.h b/xcode.h new file mode 100644 index 0000000..5381488 --- /dev/null +++ b/xcode.h @@ -0,0 +1,8 @@ +#if defined(__cplusplus) +#include +#if defined(__arm__) && defined(__thumb__) +#undef _GLIBCXX_ATOMIC_BUILTINS +#endif +#undef __TARGETING_4_0_DYLIB +#define __TARGETING_4_0_DYLIB 1 +#endif diff --git a/xcode.sh b/xcode.sh index 1ad0650..45b2ea9 100755 --- 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" -- 2.47.2