Skip to content

Commit

Permalink
Merge pull request #3256 from sysown/v2.0.16-3252
Browse files Browse the repository at this point in the history
Closes #3252: Added jemalloc compilation option '--with-lg-page' for CentOS ARM building
  • Loading branch information
renecannao authored Jan 20, 2021
2 parents ccc0887 + 59129e1 commit 15088fe
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions deps/Makefile
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit 15088fe

Please sign in to comment.