diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |