need help producing statically linked executable

Andrew Haley
Wed Aug 4 08:24:00 GMT 2010

On 08/03/2010 10:43 PM, Charlie Zender wrote:
> Thanks. I knew that ldd would list the static libraries.
> What I am looking for is an automated way to transform
> the dynamic linking command into the static link command.
> I guess I can parse the output of ldd through a perl script
> that generates "-llinux-vdso -lidn ...".

Aw, c'mon, it's only two lines of sed.  You culd have done it
by now.  :-)


More information about the Gcc-help mailing list