From fc78e870e56f59696d51b81b302fb85d0a975daa Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 18 Jun 2012 21:19:51 +0200 Subject: [PATCH] Add flags to compile x64 version --- Osmand-kernel/Makefile.vars | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Osmand-kernel/Makefile.vars b/Osmand-kernel/Makefile.vars index b5181858ce..784812835c 100755 --- a/Osmand-kernel/Makefile.vars +++ b/Osmand-kernel/Makefile.vars @@ -32,18 +32,6 @@ ifeq ($(TARGET),nacl) CFLAGS := -D__int64="long long" CXXFLAGS := -D__int64="long long" - ifeq ($(ARCH),i386) - CFLAGS += -m32 - CXXFLAGS += -m32 - LDFLAGS += -m32 - else ifeq ($(ARCH),x86_64) - CFLAGS += -m64 - CXXFLAGS += -m64 - LDFLAGS += -m64 - else - $(error Undefined ARCH $(ARCH)) - endif - else ############################################ ### EVERYTHING ELSE REQUIRES JAVA_HOME ##### @@ -94,4 +82,16 @@ else LIBRARY_PREFIX := lib endif +ifeq ($(ARCH),i386) + CFLAGS += -m32 + CXXFLAGS += -m32 + LDFLAGS += -m32 +else ifeq ($(ARCH),x86_64) + CFLAGS += -m64 + CXXFLAGS += -m64 + LDFLAGS += -m64 +else + $(error Undefined ARCH $(ARCH)) +endif + endif