aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index a8af0ef4ed..15bc2decf9 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -516,6 +516,14 @@ ifdef UNIVERSAL
# Building universal cannot compute dependencies automatically.
DISABLE_AUTO_DEPENDENCIES=1
+else
+ ifeq ($(ARCH),x86_64)
+ CompileCommonOpts += -m64
+ else
+ ifeq ($(ARCH),i386)
+ CompileCommonOpts += -m32
+ endif
+ endif
endif
ifeq ($(OS),SunOS)