From 61bc7627c4d324d985fd0da5c66178d3aeac74d0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 12 Oct 2015 02:15:02 -0700 Subject: [PATCH 1/1] Avoid default cycc behavior of compiling to arm64. --- makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 77f014c..0f16936 100644 --- a/makefile +++ b/makefile @@ -12,6 +12,8 @@ private := -F/System/Library/PrivateFrameworks flags := -Os -Werror flags += -framework CoreFoundation flags += -framework Foundation +flags += -miphoneos-version-min=2.0 +flags += -arch armv6 gssc := -lobjc iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer @@ -25,11 +27,11 @@ uicache: csstore.cpp extrainst_: csstore.cpp %: %.mm - cycc -i2.0 -o$@ -- $^ $(flags) $($@) + cycc -- -o $@ $^ $(flags) $($@) ldid -S$(wildcard $@.xml) $@ %: %.c - cycc -i2.0 -o$@ -- -x c $^ $(flags) $($@) + cycc -- -o $@ -x c $^ $(flags) $($@) ldid -S$(wildcard $@.xml) $@ package: all extrainst_ -- 2.45.2