]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Allow static linking in the developer mode
authorOndřej Surý <ondrej@isc.org>
Wed, 12 Aug 2020 13:19:23 +0000 (15:19 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 12 Aug 2020 19:56:37 +0000 (21:56 +0200)
Previously, we have disallowed static linking (for good reasons).
However, there are legitimate reasons where static linking might be
useful, and one of the reasons is the OSS-Fuzz project that doesn't have
the libraries used for build, so static linking is the sane option here.

The static linking is still disallowed in the "production" builds, but
it's not possible to disable shared and enable static libraries when
used together with --enable-developer.

configure.ac

index fdde51e2e3b277c79f431c0fea4bfdd051aa1f37..5f8d2b42412c35a90e1021187306034d61c2449d 100644 (file)
@@ -121,7 +121,7 @@ AC_PROG_MKDIR_P
 # Initialize libtool
 LT_INIT([disable-static dlopen pic-only])
 
-AS_IF([test $enable_static != "no"],
+AS_IF([test "$enable_static" != "no" && test "$enable_developer" != "yes"],
       [AC_MSG_ERROR([Static linking is not supported as it disables dlopen() and certain security features (e.g. RELRO, ASLR)])])
 
 LT_CONFIG_LTDL_DIR([libltdl])