From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5167 invoked by alias); 13 Mar 2007 18:08:07 -0000 Received: (qmail 5153 invoked by uid 22791); 13 Mar 2007 18:08:05 -0000 X-Spam-Check-By: sourceware.org Received: from mail.artimi.com (HELO mail.artimi.com) (194.72.81.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Mar 2007 18:08:00 +0000 Received: from rainbow ([192.168.8.46]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Mar 2007 18:07:55 +0000 From: "Dave Korn" To: "'Fahd Abidi'" , References: <071DB0C788671B48940BC79F8B49306907260A@ultsol01.tewks.ultsol.local> Subject: RE: Building GDB Statically Date: Tue, 13 Mar 2007 18:08:00 -0000 Message-ID: <000901c7659a$8667ff80$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <071DB0C788671B48940BC79F8B49306907260A@ultsol01.tewks.ultsol.local> 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/msg00188.txt.bz2 On 13 March 2007 19:02, Fahd Abidi wrote: > I am trying to build GDB 6.6 so that its statically linked. I want to do > this so that I can build one GDB toolset and just move the binary to the > different platforms we support, I.E RH9 thru Fedora Core 1-6. There seem > to be some messages when I build GDB implying that there are options to > build it with a -static gcc option but I can't figure out what switch to > set and where. Trying to add -static to CFLAGS in configure.in did not > do the trick. > > Any Idea's? 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. cheers, DaveK -- Can't think of a witty .sigline today....