OT: dynamic -> static lib

T. Horsnell tsh at mrc-lmb.cam.ac.uk
Tue Oct 5 12:32:16 UTC 2010


john wendel wrote:
> On 10/04/2010 09:41 AM, Tom Horsley wrote:
>> On Mon, 04 Oct 2010 17:24:51 +0100
>> T. Horsnell wrote:
>>
>>> Is it possible to create a static (.a) version
>>> of a library from the dynamic (.so) one, or to
>>> create a static executable when only shared libs
>>> are available?
>> Nope, and to all intents and purposes, it is pretty
>> much impossible to static link any program these
>> days with so many parts of glibc now dlopen()ing
>> various plugins for network protocols, or pam
>> user access info, etc.
> 
> Google for "make-static". It's a hack, but it might do the job for you.
> 
> Regards,
> 
> John
> 

Thanks very much. I'll have a play.
Terry


More information about the users mailing list