aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-01-26 18:57:39 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-01-26 18:57:39 +0000
commit544939bcc80bc49bc99f3ba60d5f8609df3c683f (patch)
tree8650c28028923c753492afd9a5c042506db91e6e /packages
parent4cf83f7d1fa0cd825a8f84b4256bf0d56d3ec075 (diff)
set up 10.6 builds to do 64-bit
svn path=/trunk/; revision=13098
Diffstat (limited to 'packages')
-rw-r--r--packages/darwin_app/Makefile8
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