Add flags to compile x64 version

This commit is contained in:
Victor Shcherb 2012-06-18 21:19:51 +02:00
parent 89f3751c50
commit fc78e870e5

View file

@ -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