Re: [PATCH] Cygwin: Only compute BFD_LIBS if building dumper

Jon Turney <[email protected]> Fri, 5 Jun 2026 12:54:00 +0100
Newsgroups gmane.os.cygwin.patches
Message-ID <[email protected]>
On 29/05/2026 14:01, Jon Turney wrote:
> Don't bother trying to determine the flags needed to link the BFD
> library if we're not even building dumper.
> 
> (AC_NO_EXECUTABLES doesn't do what the name would simply suggest: It
> silently checks if a trivial program can link, and turns itself off if
> that suceeds.
> 
> Tests which rely on linking are only made to fail by AC_NO_EXECUTABLES
> if that trivial link has failed (which OK, were probably going to fail
> anyway, but now you get the error 'link tests are not allowed after
> AC_NO_EXECUTABLES', which is perhaps slightly more informative when you
> are cross-compiling with a bootstrap compiler).)
> 
> Anyhow, if we're using a compiler which can't link executables, these
> instances of AC_CHECK_LIB will definitely fail.  But we can't possibly
> build dumper in that situation, so we'll be configuring with
> --disable-dumper, and doing those checks serves no purpose.
Pushed.