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

From: Po Lu <[email-masked]>
Date: Wed, 16 Mar 2022 12:45:12 +0800

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)

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