From: Ondřej Surý Date: Wed, 12 Aug 2020 13:19:23 +0000 (+0200) Subject: Allow static linking in the developer mode X-Git-Tag: v9.17.5~53^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0d5a9526d97e81329e70a975f58bb3dc8d32ea;p=thirdparty%2Fbind9.git Allow static linking in the developer mode 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. --- diff --git a/configure.ac b/configure.ac index fdde51e2e3b..5f8d2b42412 100644 --- a/configure.ac +++ b/configure.ac @@ -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])