Building GDB Statically
Fahd Abidi
fabidi@ultsol.com
Tue Mar 13 18:22:00 GMT 2007
-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
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org]
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
> 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
More information about the Gdb
mailing list