This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix configure test for ELF in BFD for static libraries
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 18 Jul 2008 09:03:35 -0400
- Subject: Re: Fix configure test for ELF in BFD for static libraries
- References: <Pine.LNX.4.64.0807181205430.12743@digraph.polyomino.org.uk>
On Fri, Jul 18, 2008 at 12:09:20PM +0000, Joseph S. Myers wrote:
> GDB has a configure test for ELF support in BFD. This is a link test,
> linking with $LIBS -lbfd -liberty $intl. If using zlib, this means -lz
> comes before -lbfd, and with static libraries that means -lz will not be
> used to resolve symbols needed by -lbfd - so the configure test fails when
> BFD requires zlib and a static zlib is being used.
>
> This patch puts the previous $LIBS setting after the extra libraries being
> tested rather than before, so that -lz can be used to resolve symbols
> needed by -lbfd. OK to commit?
>
> 2008-07-18 Joseph Myers <joseph@codesourcery.com>
>
> * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
> in BFD ELF check.
> * configure: Regenerate.
OK.
--
Daniel Jacobowitz
CodeSourcery