summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-06-18 15:01:14 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-06-18 15:01:14 -0700
commiteb40eacacfbea2f8001470355f68e7aae481b991 (patch)
treeebb07ec10f3ef5450ee72fd8f5cf8942af550eab
parente85bcceb1f72ea2088bbb4ff799f21b5da0a0e78 (diff)
Limit -mcpu to armv6 on gcc.
-rw-r--r--makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/makefile b/makefile
index f98a902..828ee36 100644
--- a/makefile
+++ b/makefile
@@ -78,9 +78,13 @@ backrow += -FAppleTV -framework BackRow -framework AppleTV
version := $(shell ./version.sh)
-cycc = $(gxx) -mthumb -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=2.0 -isysroot $(sdk) -idirafter /usr/include -F{sysroot,}/Library/Frameworks
+cycc = $(gxx) -mthumb -arch armv6 -o $@ -miphoneos-version-min=2.0 -isysroot $(sdk) -idirafter /usr/include -F{sysroot,}/Library/Frameworks
#cycc = cycc -r4.2 -i$(ios) -o$@
+ifneq ($(gcc),)
+cycc += -Xarch_armv6 -mcpu=arm1176jzf-s
+endif
+
dirs := Menes CyteKit Cydia SDURLCache
code := $(foreach dir,$(dirs),$(wildcard $(foreach ext,h hpp c cpp m mm,$(dir)/*.$(ext))))