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)
mac=$(path macosx)
xct="${xcs}/Toolchains/XcodeDefault.xctoolchain/usr/lib"
-system=0
+system=1
function configure() {
local dir=$1
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")
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