Subject: Re: bug#54378: Subject: 29.0 Build failed

From: Robert Pluim <[email-masked]>
Date: Wed, 16 Mar 2022 08:34:30 +0100

>>>>> On Wed, 16 Mar 2022 12:45:12 +0800, Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email-masked]> said:

    Po> Robert Pluim <[email-masked]> writes:
    >> diff --git a/configure.ac b/configure.ac
    >> index a315eeb6bd..df00c98e36 100644
    >> --- a/configure.ac
    >> +++ b/configure.ac
    >> @@ -3940,10 +3940,16 @@ AC_DEFUN
    >> darwin) MODULES_SECONDARY_SUFFIX='.so' ;;
    >> *) MODULES_SECONDARY_SUFFIX='' ;;
    >> esac
    >> +
    >> +case $opsys in
    >> +  gnu|gnu-linux)
    >> +  LIBMODULES="-ldl"
    >> +  ;;
    >> +esac
    >> +
    >> if test "${with_modules}" != "no"; then
    >> case $opsys in
    >> gnu|gnu-linux)
    >> -      LIBMODULES="-ldl"
    >> HAVE_MODULES=yes
    >> ;;
    >> cygwin|mingw32|darwin)

    Po> Let's make this PGTK-specific though, I think -ldl is not available in
    Po> some GNU/Linux systems.

--with-modules assumes that itʼs available on all GNU/Linux systems.

I can respin to make it dependent on PGTK, but that will be more
complex and require more testing.

Robert
--