aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2014-11-18 14:25:41 +0100
committerGuenter Knauf <lists@gknw.net>2014-11-18 14:25:41 +0100
commit4bc47bec574ba843150bf897299eaf892cdbeff1 (patch)
tree9685a30bd9930133a640402a5bbe3f0514fc8004
parente126ec4fc44de00e53e0b7a05ef04dcf7b246d6d (diff)
build: in Makefile.m32 add -m32 flag for 32bit.
-rw-r--r--lib/Makefile.m322
-rw-r--r--src/Makefile.m322
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index cb301c383..d0ac77b10 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -64,6 +64,8 @@ CFLAGS = -g -O2 -Wall
CFLAGS += -fno-strict-aliasing
ifeq ($(ARCH),w64)
CFLAGS += -D_AMD64_
+else
+CFLAGS += -m32
endif
# comment LDFLAGS below to keep debug info
LDFLAGS = -s
diff --git a/src/Makefile.m32 b/src/Makefile.m32
index 614c2b637..ac1c0b835 100644
--- a/src/Makefile.m32
+++ b/src/Makefile.m32
@@ -76,6 +76,8 @@ CFLAGS = -g -O2 -Wall
CFLAGS += -fno-strict-aliasing
ifeq ($(ARCH),w64)
CFLAGS += -D_AMD64_
+else
+CFLAGS += -m32
endif
# comment LDFLAGS below to keep debug info
LDFLAGS = -s