Fixes #3252: Added jemalloc compilation option '--with-lg-page' for CentOS ARM building

pull/3286/head
Javier Jaramago Fernández 5 years ago committed by René Cannaò
parent 2b23bd3102
commit 419e239da8

22
deps/Makefile vendored

@ -1,19 +1,33 @@
UNAME_S := $(shell uname -s)
UNAME_MS := $(word 2, $(shell uname -ms))
ifneq (,$(wildcard /etc/system-release))
CENTOSVER := $(shell rpm --eval %rhel)
else
CENTOSVER := Unknown
endif
IS_ARM = $(if $(findstring aarch64, $(arch)),true,false)
IS_CENTOS = $(if $(findstring Unknown, $(CENTOSVER)),false,true)
PROXYDEBUG := $(shell echo $(PROXYDEBUG))
ifeq ($(PROXYDEBUG),1)
MYCFLAGS=-O0
MYJEOPT=--enable-xmalloc --enable-prof --enable-fill --enable-debug
ifeq ($(and $(IS_ARM),$(IS_CENTOS)),true)
MYJEOPT+=--with-lg-page=16
endif
else
MYCFLAGS=-O2
MYJEOPT=--enable-xmalloc --enable-prof
ifeq ($(and $(IS_ARM),$(IS_CENTOS)),true)
MYJEOPT+=--with-lg-page=16
endif
ifneq (,$(wildcard /etc/system-release))
CENTOSVER := $(shell rpm --eval %rhel)
else
CENTOSVER := Unknown
endif
PROXYSQLCLICKHOUSE := $(shell echo $(PROXYSQLCLICKHOUSE))

Loading…
Cancel
Save