This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Building GDB Statically
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....