From eb0d5a9526d97e81329e70a975f58bb3dc8d32ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 12 Aug 2020 15:19:23 +0200 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.47.3