diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-01-26 18:57:39 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-01-26 18:57:39 +0000 |
commit | 544939bcc80bc49bc99f3ba60d5f8609df3c683f (patch) | |
tree | 8650c28028923c753492afd9a5c042506db91e6e | |
parent | 4cf83f7d1fa0cd825a8f84b4256bf0d56d3ec075 (diff) |
set up 10.6 builds to do 64-bit
svn path=/trunk/; revision=13098
-rw-r--r-- | packages/darwin_app/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 |