diff --git a/makefile b/makefile index 147bb6f3de..08287d14f9 100755 --- a/makefile +++ b/makefile @@ -321,7 +321,7 @@ ifeq ($(platform),darwin) ifeq ($(build-arch),powerpc) converter-cflags += -DOPPOSITE_ENDIAN endif - flags = -arch armv6 -isysroot \ + flags = -arch armv7 -isysroot \ /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/ openjdk-extra-cflags += $(flags) cflags += $(flags) diff --git a/src/binaryToObject/mach-o.cpp b/src/binaryToObject/mach-o.cpp index fefde4a467..8b37e85aaf 100644 --- a/src/binaryToObject/mach-o.cpp +++ b/src/binaryToObject/mach-o.cpp @@ -38,7 +38,7 @@ #define CPU_SUBTYPE_I386_ALL 3 #define CPU_SUBTYPE_X86_64_ALL CPU_SUBTYPE_I386_ALL #define CPU_SUBTYPE_POWERPC_ALL 0 -#define CPU_SUBTYPE_ARM_V6 6 +#define CPU_SUBTYPE_ARM_V7 9 #if (BITS_PER_WORD == 64) # define Magic MH_MAGIC_64 @@ -321,7 +321,7 @@ MAKE_NAME(writeMachO, BITS_PER_WORD, Object) cpuSubType = CPU_SUBTYPE_POWERPC_ALL; } else if (strcmp(architecture, "arm") == 0) { cpuType = CPU_TYPE_ARM; - cpuSubType = CPU_SUBTYPE_ARM_V6; + cpuSubType = CPU_SUBTYPE_ARM_V7; } else { fprintf(stderr, "unsupported architecture: %s\n", architecture); return false;