summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d8a3b2d89..0dff88c72 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,7 @@ OPT += -Wall -Wno-sign-compare
# LIBS += -L/usr/local/lib -lpcre
PLATFORM = $(shell uname)
+ARCH = $(shell uname -m)
ifeq ($(findstring Linux,$(PLATFORM)), Linux)
LIBS += -ldl
@@ -73,6 +74,10 @@ ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
endif
endif
+ifeq ($(findstring x86_64,$(ARCH)), x86_64)
+ OPT += -m32
+endif
+
CFLAGS = $(OPT) -I../common $(OS_TYPE)
ifdef SQLFLAG