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