From: Timo Sirainen Date: Mon, 23 Jan 2023 18:53:39 +0000 (+0200) Subject: m4/dovecot.m4: Fix including all symbols from .a libs with new glibc X-Git-Tag: 2.4.0~3170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad617e689301c2fb3e70139ce38802af5517dd1b;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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