summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2015-09-10 13:01:31 +0200
committerManuel Mohr <manuel.mohr@kit.edu>2015-09-10 13:18:13 +0200
commit5f1b891d30626dc4074686aa2ea061356c635b93 (patch)
treef4c77ee4b6352d44f8e66b0f7c0c7721b5c2203e
parenta1981659e8e31aa750a1ec37959452909bfc48d2 (diff)
Support multilib.amd64
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e6314c7..a822490 100644
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,11 @@ CFLAGS = -O2 -g -Wall -W
ifeq ($(findstring sparc, $(TARGET)), sparc)
EXTRA_OBJECTS += src/sparc_mach_dep.o
endif
+ifeq ($(findstring x86_64, $(GUESSED_TARGET)), x86_64)
+ifeq ($(findstring i686, $(TARGET)), i686)
+ CFLAGS += -m32
+endif
+endif
# Operating-system-specific stuff
ifeq ($(findstring linux, $(TARGET)), linux)