To compile on ARM CPU (#46)

This commit is contained in:
Qiang Kou (KK) 2017-07-12 20:24:19 -07:00 committed by Tianqi Chen
parent 0b406754fa
commit 41c96a25a9

View File

@ -19,7 +19,15 @@ export LDFLAGS= -Llib -Wl,-rpath=/usr/local/lib/gcc6
endif
export WARNFLAGS= -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas -std=c++0x
export CFLAGS = -O3 -msse2 $(WARNFLAGS)
export CFLAGS = -O3 $(WARNFLAGS)
ifndef USE_SSE
USE_SSE = 1
endif
ifeq ($(USE_SSE), 1)
CFLAGS += -msse2
endif
ifndef WITH_FPIC
WITH_FPIC = 1