From ad617e689301c2fb3e70139ce38802af5517dd1b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 23 Jan 2023 20:53:39 +0200 Subject: [PATCH] m4/dovecot.m4: Fix including all symbols from .a libs with new glibc New glibc no longer has libdl, so the check for it no longer works. Use -export-dynamic instead, which is used with both old and new glibc. --- m4/dovecot.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 index aeff3b802b..3f9bf721e3 100644 --- a/m4/dovecot.m4 +++ b/m4/dovecot.m4 @@ -6,7 +6,7 @@ dnl This file is free software; the authors give dnl unlimited permission to copy and/or distribute it, with or without dnl modifications, as long as this notice is preserved. -# serial 37 +# serial 38 dnl dnl Check for support for D_FORTIFY_SOURCE=2 @@ -419,7 +419,7 @@ AC_DEFUN([DC_CC_WRAPPER],[ cat > cc-wrapper.sh <<_DC_EOF #!/bin/sh -if echo "\$[*]" | grep -- -ldl > /dev/null; then +if echo "\$[*]" | grep -- -export-dynamic > /dev/null; then # the binary uses plugins. make sure we include everything from .a libs exec $CC -Wl,--whole-archive \$[*] -Wl,--no-whole-archive else -- 2.47.3