From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6831 invoked by alias); 13 Jun 2005 19:42:17 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6818 invoked by uid 22791); 13 Jun 2005 19:42:13 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 13 Jun 2005 19:42:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1Dhup2-0006Ha-8O; Mon, 13 Jun 2005 15:42:12 -0400 Date: Mon, 13 Jun 2005 19:42:00 -0000 From: Daniel Jacobowitz To: Aaron Gaudio Cc: gdb Subject: Re: Configuring linker flags while cross-compiling gdb Message-ID: <20050613194212.GA24109@nevyn.them.org> Mail-Followup-To: Aaron Gaudio , gdb References: <1118676366.27729.73.camel@rockhopper> <20050613153007.GA7054@nevyn.them.org> <1118689574.27729.82.camel@rockhopper> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1118689574.27729.82.camel@rockhopper> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00117.txt.bz2 On Mon, Jun 13, 2005 at 03:06:14PM -0400, Aaron Gaudio wrote: > In the case of libsocket, it is not a cross-compiler problem; you always > have to add -lsocket to the link libs when using things like socket(), > or linking libraries that do (such as X11 libs). The problem is that > when building a native gdb on solaris (with --target=i386-pc- > solaris2.10), configure detects that -lsocket is required and adds it to > the appopriate Makefile macros, but does not when building for x86 > Solaris.... But it still ought to. That's what I meant by a cross-compiler problem; something has gone wrong during the configure step. > Any further help is much appreciated. I usually stuff things that need to go in LDFLAGS in $CC if they're being ornery. -- Daniel Jacobowitz CodeSourcery, LLC