From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7461 invoked by alias); 13 Mar 2007 18:15:07 -0000 Received: (qmail 7428 invoked by uid 22791); 13 Mar 2007 18:15:06 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Mar 2007 18:14:56 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 7327B4B267; Tue, 13 Mar 2007 13:14:55 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 30C0D4B262; Tue, 13 Mar 2007 13:14:47 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HRBWI-0004Lf-JV; Tue, 13 Mar 2007 14:14:46 -0400 Date: Tue, 13 Mar 2007 18:15:00 -0000 From: Daniel Jacobowitz To: Dave Korn Cc: 'Fahd Abidi' , gdb@sourceware.org Subject: Re: Building GDB Statically Message-ID: <20070313181446.GA16699@caradoc.them.org> Mail-Followup-To: Dave Korn , 'Fahd Abidi' , gdb@sourceware.org References: <071DB0C788671B48940BC79F8B49306907260A@ultsol01.tewks.ultsol.local> <000901c7659a$8667ff80$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c7659a$8667ff80$2e08a8c0@CAM.ARTIMI.COM> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00189.txt.bz2 On Tue, Mar 13, 2007 at 06:07:55PM -0000, Dave Korn wrote: > Most GNU software allows you to specify "--disable-shared" as an option to > the configure command to obtain a statically-linked build; this takes care of > everything you need to do for both compiler flags, 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. -- Daniel Jacobowitz CodeSourcery