Add build support for jemalloc
This commit is contained in:
parent
18a6d79ab8
commit
4e13bdec04
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user