Building GDB Statically

Dave Korn dave.korn@artimi.com
Tue Mar 13 18:08:00 GMT 2007


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....



More information about the Gdb mailing list