summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index bf13b26200..3c115d2a52 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -519,6 +519,16 @@ ifdef UNIVERSAL
# Building universal cannot compute dependencies automatically.
DISABLE_AUTO_DEPENDENCIES=1
+else
+ ifeq ($(OS),Darwin)
+ ifeq ($(ARCH),x86_64)
+ CompileCommonOpts += -m64
+ else
+ ifeq ($(ARCH),x86)
+ CompileCommonOpts += -m32
+ endif
+ endif
+ endif
endif
ifeq ($(OS),SunOS)