From 544939bcc80bc49bc99f3ba60d5f8609df3c683f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 26 Jan 2010 18:57:39 +0000 Subject: set up 10.6 builds to do 64-bit svn path=/trunk/; revision=13098 --- packages/darwin_app/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 98bd6a15..f49aca72 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -32,7 +32,13 @@ FAT_FLAGS = -mmacosx-version-min=10.4 # which CPU to compile for TARGET_PLATFORM := $(shell uname -p) ifeq ($(TARGET_PLATFORM),i386) - OPT_CFLAGS += -march=pentium4 -msse3 -mfpmath=sse + # if on 10.6/Intel, then build as 64-bit with core2 as minimum CPU + ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 10) + OPT_CFLAGS += -march=core2 -msse3 -mssse3 -mfpmath=sse + FAT_FLAGS = -mmacosx-version-min=10.6 + else + OPT_CFLAGS += -march=pentium4 -msse3 -mfpmath=sse + endif else OPT_CFLAGS += -mcpu=7450 -mtune=7450 endif -- cgit v1.2.1