From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11906 invoked by alias); 18 Jul 2008 13:04:03 -0000 Received: (qmail 11896 invoked by uid 22791); 18 Jul 2008 13:04:02 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Jul 2008 13:03:38 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 2F34C98373; Fri, 18 Jul 2008 13:03:36 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 11B8998015; Fri, 18 Jul 2008 13:03:36 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KJpcV-0000nU-GP; Fri, 18 Jul 2008 09:03:35 -0400 Date: Fri, 18 Jul 2008 13:04:00 -0000 From: Daniel Jacobowitz To: "Joseph S. Myers" Cc: gdb-patches@sourceware.org Subject: Re: Fix configure test for ELF in BFD for static libraries Message-ID: <20080718130335.GB19045@caradoc.them.org> Mail-Followup-To: "Joseph S. Myers" , gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00363.txt.bz2 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 > > * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl > in BFD ELF check. > * configure: Regenerate. OK. -- Daniel Jacobowitz CodeSourcery