Add build support for jemalloc

This commit is contained in:
Roger A. Light 2020-11-12 17:01:34 +00:00
parent 18a6d79ab8
commit 4e13bdec04

View File

@ -111,6 +111,9 @@ WITH_CJSON:=yes
# Build mosquitto with support for the $CONTROL topics.
WITH_CONTROL:=yes
# Build the broker with the jemalloc allocator
WITH_JEMALLOC:=no
# =============================================================================
# End of user configuration
# =============================================================================
@ -301,6 +304,10 @@ ifeq ($(WITH_DOCS),yes)
MAKE_ALL:=$(MAKE_ALL) docs
endif
ifeq ($(WITH_JEMALLOC),yes)
BROKER_LDADD:=$(BROKER_LDADD) -ljemalloc
endif
ifeq ($(WITH_UNIX_SOCKETS),yes)
BROKER_CPPFLAGS:=$(BROKER_CPPFLAGS) -DWITH_UNIX_SOCKETS
LIB_CPPFLAGS:=$(LIB_CPPFLAGS) -DWITH_UNIX_SOCKETS