Skip to content
Snippets Groups Projects
Commit d5c03f7d authored by Daniel Salzman's avatar Daniel Salzman
Browse files

configure: add --with-memory-allocator option to support alternative malloc implementations

parent 136a03c6
No related merge requests found
Pipeline #38428 passed with warnings with stages
in 13 minutes and 27 seconds
......@@ -244,6 +244,18 @@ AS_IF([test "$enable_systemd" = "yes"],[
]) dnl enable_daemon
# Alternative memory allocator
malloc_LIBS=
AC_ARG_WITH([memory-allocator],
AS_HELP_STRING([--with-memory-allocator=auto|library], [Use specific memory allocator for the server [default=auto]]),
AS_CASE([$withval],
[auto], [],
[*], [malloc_LIBS="-l$withval"]
)
with_memory_allocator=[$withval]
)
AS_IF([test "$with_memory_allocator" = ""], [with_memory_allocator="auto"])
AC_SUBST([malloc_LIBS])
dnl Check for userspace-rcu library
AC_ARG_WITH(urcu,
......@@ -615,6 +627,7 @@ result_msg_base=" Knot DNS $VERSION
Use recvmmsg: ${enable_recvmmsg}
Use SO_REUSEPORT: ${enable_reuseport}
Memory allocator: ${with_memory_allocator}
Fast zone parser: ${enable_fastparser}
Utilities with IDN: ${with_libidn}
Utilities with Dnstap: ${enable_dnstap}
......
......@@ -105,7 +105,7 @@ knotc_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(libedit_CFLAGS)
knotc_LDADD = libcontrib.la libknotd.la libknotus.la $(libedit_LIBS)
knotc_LDFLAGS = $(AM_LDFLAGS) -rdynamic
knotd_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(liburcu_CFLAGS)
knotd_LDADD = libcontrib.la libknotd.la $(liburcu_LIBS)
knotd_LDADD = $(malloc_LIBS) libcontrib.la libknotd.la $(liburcu_LIBS)
knotd_LDFLAGS = $(AM_LDFLAGS) -rdynamic
if HAVE_UTILS
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment