From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12145 invoked by alias); 13 Mar 2007 18:22:27 -0000 Received: (qmail 12137 invoked by uid 22791); 13 Mar 2007 18:22:27 -0000 X-Spam-Check-By: sourceware.org Received: from vms044pub.verizon.net (HELO vms044pub.verizon.net) (206.46.252.44) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Mar 2007 18:22:20 +0000 Received: from ultsol.com ([72.74.243.178]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JEU00BFMTP6ZAND@vms044.mailsrvcs.net> for gdb@sourceware.org; Tue, 13 Mar 2007 13:22:18 -0500 (CDT) Date: Tue, 13 Mar 2007 18:22:00 -0000 From: "Fahd Abidi" Subject: RE: Building GDB Statically To: "Daniel Jacobowitz" , "Dave Korn" Cc: Message-id: <071DB0C788671B48940BC79F8B49306907260C@ultsol01.tewks.ultsol.local> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable Content-class: urn:content-classes:message X-Ninja-PIM: Scanned by Ninja X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00190.txt.bz2 -Compiling a dynamically linked binary on the oldest interesting system works best. I was going to do Just that. But I have thus far been unable to get GDB6.6 to build on my RH9 box. Compiles just fine on my FC6. I'll try your suggestion of setting LDFLAGS with a -static option and will let you know the result. Will also try the --disable-shared option. Fahd =20 -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Tuesday, March 13, 2007 3:16 PM To: Dave Korn Cc: Fahd Abidi; gdb@sourceware.org Subject: Re: Building GDB Statically On Tue, Mar 13, 2007 at 06:07:55PM -0000, Dave Korn wrote: > Most GNU software allows you to specify "--disable-shared" as an=20 > option to the configure command to obtain a statically-linked build;=20 > this takes care of everything you need to do for both compiler flags,=20 > linker flags, libtool settings etc. Actually, --disable-shared normally only generates static libraries instead of shared libraries. Setting LDFLAGS or CFLAGS should work. However GDB may or may not when moved between systems; I do not recommend the use of static binaries. Compiling a dynamically linked binary on the oldest interesting system works best. --=20 Daniel Jacobowitz CodeSourcery