From 230d2519c778778f0a6e9b39d2157963ae8ab798 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 24 Feb 2007 16:33:23 +0000 Subject: Added Krade's makefile fix for 64bit compilers git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9910 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-60-g2f50