summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index 9682238161..035265a5de 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -209,9 +209,11 @@ GCC_VER := 4.0
# FIXME: The '-arch i386' is only here until
# SDL 1.2.14 is available
#
-ARCHS := -arch i386
+ARCHS := i386
export ARCHS
+CF_ARCHS := $(patsubst %,-arch %,$(ARCHS))
+
# Mac OS X 10.4 adds a 'u' on the end of the SDK name. Everything
# else is much easier to predict the name of.
ifeq ($(SDK_VER),10.4)
@@ -220,8 +222,8 @@ else
SDKROOT := /Developer/SDKs/MacOSX$(SDK_VER).sdk
endif
-CC = $(GCC) $(ARCHS) -isysroot $(SDKROOT) -mmacosx-version-min=$(SDK_VER)
-CXX = $(GXX) $(ARCHS) -isysroot $(SDKROOT) -mmacosx-version-min=$(SDK_VER)
+CC = $(GCC) $(CF_ARCHS) -isysroot $(SDKROOT) -mmacosx-version-min=$(SDK_VER)
+CXX = $(GXX) $(CF_ARCHS) -isysroot $(SDKROOT) -mmacosx-version-min=$(SDK_VER)
endif # MacOS