Static library for gcc compiling
Andy Howell
AndyHowell@austin.rr.com
Thu Jul 31 16:51:00 GMT 2003
Matthias David Siebler wrote:
>> It is possible to have a program that is otherwise linked statically
>> to be linked with libdl.so.
>
> Andy:
>
> could you maybe give me an example of how to do this? It would be
> helpful for me with a problem I'm trying to olve now. Thanks
Sure. I wanted to make a binary with the libstdc++ to be static, so my
libs looked like:
-lposix4 -lsocket -lgen -lnsl -ldl -lthread -Xlinker -B -Xlinker static
-lstdc++
Hope this helps,
Andy
More information about the Gcc-help
mailing list