From 7c087cd2b012a076eb408ece28ed06781c64b464 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 1 Jan 2014 19:21:45 -0800 Subject: [PATCH] Compile libffi with the changes needed for ARM64. --- libffi.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libffi.sh b/libffi.sh index 9d887df..1d13f9b 100755 --- a/libffi.sh +++ b/libffi.sh @@ -38,10 +38,15 @@ function arch() { archs+=("${arch}") mkdir "libffi.${arch}" - flags="-isysroot ${isysroot} -m${os}-version-min=${min}" + flags=() + flags+=(-isysroot "${isysroot}") + flags+=(-m${os}-version-min="${min}") + flags+=(-no-integrated-as) + flags+=(-fno-stack-protector) + flags+=(-O3 -g3) cd "libffi.${arch}" - CC="clang -arch ${arch}" CFLAGS="-no-integrated-as ${flags}" CPPFLAGS="${flags}" ../libffi/configure --host="${host}" + CC="clang -arch ${arch}" CFLAGS="${flags[*]}" CPPFLAGS="${flags[*]}" ../libffi/configure --host="${host}" make cd .. } -- 2.45.2