From: Robert Pluim Date: Wed, 16 Mar 2022 14:24:35 +0000 (+0100) Subject: Link with libdl when using pgtk X-Git-Tag: emacs-29.0.90~1931^2~1096 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=679b9cc9ff3c65b4b6d3da2987703e0dfd3001be;p=emacs.git Link with libdl when using pgtk * configure.ac: Define LIBMODULES on GNU/Linux when using pgtk, even when not using modules, since pgtkterm.c uses dlsym. (Bug#54378) --- diff --git a/configure.ac b/configure.ac index a315eeb6bd2..bc17935eb13 100644 --- a/configure.ac +++ b/configure.ac @@ -3940,6 +3940,16 @@ case "${opsys}" in darwin) MODULES_SECONDARY_SUFFIX='.so' ;; *) MODULES_SECONDARY_SUFFIX='' ;; esac + +# pgtkterm.c uses dlsym +if test $window_system = pgtk; then + case $opsys in + gnu|gnu-linux) + LIBMODULES="-ldl" + ;; + esac +fi + if test "${with_modules}" != "no"; then case $opsys in gnu|gnu-linux)