]> git.saurik.com Git - cydia.git/commitdiff
Limit -mcpu to armv6 on gcc.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 18 Jun 2011 22:01:14 +0000 (15:01 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 18 Jun 2011 22:01:14 +0000 (15:01 -0700)
makefile

index f98a9029ac6d20e1832ef54d047620b5a0b49d18..828ee362ff216c19a04bfeb6f4fcbd8cc7634caa 100644 (file)
--- 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))))