daily discovery

Memory dump of new things discovered daily.

Tuesday, November 29, 2005

Linking Partially-Static Binaries

A useful trick where you want to statically link in some libraries, whilest keeping a binary or library dynamic (such as to distribute a binary python module) is to use the "-Wl,-Bstatic" linker option. Any libraries specified ("-lfoo") after this option are linked statically. The opposite of this option is "-Wl,-Bshared".


1 Comments:

At 10:04 PM, steve said...

Holy crap, a post! Horrah :D

Thanks Ycros.

Just for this, I am coming to the next possible SLUG :P

Cheers,
Steve

 

Post a Comment

<< Home