]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't enforce jemalloc on NetBSD
authorOndřej Surý <ondrej@isc.org>
Mon, 31 Oct 2022 14:46:30 +0000 (14:46 +0000)
committerOndřej Surý <ondrej@isc.org>
Mon, 31 Oct 2022 15:15:11 +0000 (16:15 +0100)
The NetBSD system allocator is in fact based on the jemalloc, but it
doesn't export the extended interface, so we can't use that.  Remove
the jemalloc enforcement for the NetBSD.

(cherry picked from commit feea72414b4251ffa67c05e17efe21e9fa28d4ab)

configure.ac

index 2a39981d8ed73e681399ee6999bf5ce3fbc0927f..a7bd81d957819b60d410633a0881570bcaf142ce 100644 (file)
@@ -1335,7 +1335,7 @@ AC_SUBST([CMOCKA_LIBS])
 AM_CONDITIONAL([HAVE_CMOCKA], [test "$with_cmocka" = "yes"])
 
 #
-# Compile with jemalloc (either provided as package or wired in the system on FreeBSD and NetBSD)
+# Compile with jemalloc (either provided as package or wired in the system on FreeBSD)
 #
 # [pairwise: --with-jemalloc=detect, --with-jemalloc=yes, --without-jemalloc]
 AC_ARG_WITH([jemalloc],
@@ -1355,8 +1355,7 @@ AS_CASE([$with_jemalloc],
 
 AS_IF([test "$with_jemalloc" = "no"],
       [AS_CASE([$host],
-              [*-freebsd*],[AC_MSG_ERROR([You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD])],
-              [*-netbsd*],[AC_MSG_ERROR([You cannot compile without jemalloc; jemalloc is the system allocator on NetBSD])])
+              [*-freebsd*],[AC_MSG_ERROR([You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD])])
        AC_CHECK_FUNCS([malloc_size malloc_usable_size])])
 
 AM_CONDITIONAL([HAVE_JEMALLOC], [test "$with_jemalloc" = "yes"])