X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/e9b51ae0c4a83549928672322ccb9948ab2c8968..13c7f2fb8fc0619c8da1b5c8a697f7894479b070:/libffi.sh diff --git a/libffi.sh b/libffi.sh index 7d3420d..fa01534 100755 --- a/libffi.sh +++ b/libffi.sh @@ -45,6 +45,10 @@ function arch() { flags+=(-fno-stack-protector) flags+=(-O3 -g3) + if [[ ${arch} == arm* && ${arch} != arm64 ]]; then + flags+=(-mthumb) + fi + cd "libffi.${arch}" CC="clang -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]} $*" ../libffi/configure --host="${host}" make