]> git.saurik.com Git - cycript.git/blobdiff - xcode.sh
Use -Zlzma (not -zlzma) when running dpkg-deb.
[cycript.git] / xcode.sh
index fd656b500bc692503f86dbe871306ffecc5350bc..d901f489f5318abfb04d72b36d1b9fc73cfc620f 100755 (executable)
--- a/xcode.sh
+++ b/xcode.sh
@@ -61,7 +61,7 @@ function configure() {
     cd build."${dir}"
 
     CC="${cc} ${flg}" CXX="${cxx} ${flg}" OBJCXX="${cxx} ${flg}" \
-        ../configure "${flags[@]}" --prefix="/usr" "$@"
+        ../configure --enable-maintainer-mode "${flags[@]}" --prefix="/usr" "$@"
 
     cd ..
 }
@@ -80,7 +80,7 @@ function build() {
     configure "${dir}" "${sdk}" "${flg}" "$@" --enable-static --with-pic
 }
 
-for arch in i386; do
+for arch in i386 x86_64; do
     build "sim-${arch}" iphonesimulator "-arch ${arch} -mios-simulator-version-min=4.0" \
         OBJCXXFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch" \
         CPPFLAGS="-I../libffi.${arch}/include" \
@@ -92,14 +92,22 @@ for arch in armv6 armv7 armv7s arm64; do
     cpf="-I../libffi.${arch}/include"
     ldf="-L.."
 
+    flg=()
     if [[ ${arch} != armv6 ]]; then
-        flg=(--disable-console)
+        flg+=(--disable-console)
     else
-        flg=(LTLIBAPR="../sysroot.ios/usr/lib/libapr-1.dylib")
+        flg+=(LTLIBAPR="../sysroot.ios/usr/lib/libapr-1.dylib")
+        flg+=(LTLIBGCC="-lgcc_s.1")
         cpf+=" -I../sysroot.ios/usr/include -I../sysroot.ios/usr/include/apr-1"
         ldf+=" -L../sysroot.ios/usr/lib"
     fi
 
-    build "ios-${arch}" iphoneos "-arch ${arch} -miphoneos-version-min=2.0" --host=arm-apple-darwin10 \
+    if [[ ${arch} == arm64 ]]; then
+        min=7.0
+    else
+        min=2.0
+    fi
+
+    build "ios-${arch}" iphoneos "-arch ${arch} -miphoneos-version-min=${min}" --host=arm-apple-darwin10 \
         CPPFLAGS="${cpf}" LDFLAGS="${ldf}" "${flg[@]}" --host=arm-apple-darwin10
 done