]> git.saurik.com Git - cycript.git/blobdiff - apple-configure.sh
Instance's toPointer() should return as CFTypeRef.
[cycript.git] / apple-configure.sh
index da3efc19ab2dc1174288e173b76c1ddb9417e571..f22fc0b5e794d06ed7b48532009ef1622adf87be 100755 (executable)
@@ -23,15 +23,6 @@ set -e
 
 cd "${0%%/*}"
 
-if ! which aclocal; then
-    touch aclocal.m4; fi
-if ! which autoconf; then
-    touch configure.ac; fi
-if ! which automake; then
-    touch Makefile.in; fi
-if ! which autoheader; then
-    touch config.h.in; fi
-
 flags=("$@")
 ccf=(-g0 -O3)
 
@@ -43,7 +34,7 @@ xcs=$(xcode-select --print-path)
 mac=$(path macosx)
 xct="${xcs}/Toolchains/XcodeDefault.xctoolchain/usr/lib"
 
-system=0
+system=1
 
 function configure() {
     local dir=$1
@@ -102,7 +93,11 @@ for arch in armv6 armv7 armv7s arm64; do
     ldf=""
 
     flg=()
-    if [[ ${arch} != armv6 ]]; then
+    if [[ ${arch} == arm64 ]]; then
+        cpf+=" -I../extra.${arch}"
+        cpf+=" -I../readline.${arch}"
+        ldf+=" -L../readline.${arch}"
+    elif [[ ${arch} != armv6 ]]; then
         flg+=(--disable-console)
     else
         flg+=(LTLIBGCC="-lgcc_s.1")
@@ -112,6 +107,9 @@ for arch in armv6 armv7 armv7s arm64; do
         ldf+=" -L../sysroot.ios/usr/lib"
     fi
 
+    ldf+=" -Wl,-dead_strip"
+    ldf+=" -Wl,-no_dead_strip_inits_and_terms"
+
     if [[ ${arch} == arm64 ]]; then
         min=7.0
     else