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)
This commit is contained in:
Robert Pluim 2022-03-16 15:24:35 +01:00
parent d5e8f483f9
commit 679b9cc9ff

View file

@ -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)