3 # Cycript - The Truly Universal Scripting Language
4 # Copyright (C) 2009-2016 Jay Freeman (saurik)
6 # GNU Affero General Public License, Version 3 {{{
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Affero General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Affero General Public License for more details.
18 # You should have received a copy of the GNU Affero General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
38 rm -rvf "${lib}.${arch}"
39 if ! isysroot
=$(xcodebuild -sdk "${sdk}" -version Path); then
44 mkdir "${lib}.${arch}"
47 flags
+=(-isysroot "${isysroot}")
48 flags
+=(-m${os}-version-min="${min}")
51 if [[ ${arch} == armv
* && ${arch} != armv6
]]; then
56 CC
="clang -arch ${arch}" CXX
="clang++ -arch ${arch}" LDFLAGS
="${flags[*]}" CPPFLAGS
="${flags[*]} $*" ..
/"${lib}"/configure
--host="${host}" --enable-static --disable-shared \
57 ac_cv_func_strcoll_works
=yes bash_cv_func_sigsetjmp
=present bash_cv_func_ctype_nonascii
=no bash_cv_must_reinstall_sighandlers
=no bash_cv_func_strcoll_broken
=yes bash_cv_wcwidth_broken
=no
66 arch
"${lib}" arm64 aarch64
-apple-darwin11 iphoneos iphoneos
2.0 "$@"
73 arch
"${lib}" armv6 arm
-apple-darwin10 iphoneos iphoneos
2.0 "$@" -mllvm -arm-reserve-r9
74 arch
"${lib}" armv7 arm
-apple-darwin10 iphoneos iphoneos
2.0 "$@"
75 arch
"${lib}" armv7s arm
-apple-darwin10 iphoneos iphoneos
2.0 "$@"
79 arch
"${lib}" i386 i386
-apple-darwin10 iphonesimulator ios
-simulator 4.0 "$@"
80 arch
"${lib}" x86_64 x86_64
-apple-darwin11 iphonesimulator ios
-simulator 4.0 "$@"
83 archs libffi
-DPAGE_MAX_SIZE=16384 -DPAGE_MAX_SHIFT=14 -fno-stack-protector
85 arch64 readline
-include sys
/ioctl.h
88 ln -sf .
"readline.${arch}/readline"