https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80921

--- Comment #5 from Keith Marshall <keith.marshall at mailinator dot com> ---
(In reply to Eric Botcazou from comment #3)
> Probably the FIXME in libada/configure.ac then:
> 
> # Determine what to build for 'gnatlib'
> if test $build = $target \
>    && test ${enable_shared} = yes ; then
>   # Note that build=target is almost certainly the wrong test; FIXME
>   default_gnatlib_target="gnatlib-shared"
> else
>   default_gnatlib_target="gnatlib-plain"
> fi
> AC_SUBST([default_gnatlib_target])
> 
> No idea why this was put in the first place but the first test should go...

Thanks.  That seems likely.

I have autoconf-2.69, not 2.64 (which your configuration requires), so I found
the corresponding fragment within libada/configure itself, and adjusted that:

# Determine what to build for 'gnatlib'
if test ${enable_shared} = yes ; then
  default_gnatlib_target="gnatlib-shared"
else
  default_gnatlib_target="gnatlib-plain"
fi

With that in place, a clean configure and build does now produce:

gcc/ada/rts/libgnarl-6.dll
gcc/ada/rts/libgnat-6.dll

but there are no accompanying import libraries, (as there are for other DLLs,
produced for other languages in the GCC suite).  Definitely an improvement, but
perhaps not quite the entire solution.

Reply via email to