Add flags to compile x64 version
This commit is contained in:
parent
89f3751c50
commit
fc78e870e5
1 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue