On Wed, 09 Mar 2005 21:35:56 +0100, Josselin Mouette <[EMAIL PROTECTED]> wrote:
> Le mercredi 09 mars 2005 à 11:23 -0800, Blunt Jackson a écrit :
> > I appreciate the clarification. What is desirable, then, is for the 
> > developer
> > to be able to statically link his or her own libraries, and third
> > party libraries,
> > but to dynamically pick up "system" libraries, of which I would number
> > libpthread. That would be adequate for my needs. I expect this is possible,
> > as *everything* is possible, somehow. Perhaps it is something as trivial
> > as a compiler or linker flag that I have missed?
> 
> Yup, just enclose the libraries you want to link statically against
> between -Wl,-Bstatic and -Wl,-Bdynamic:
> 
> gcc -o something foo.o bar.o -lsystemlib -Wl,-Bstatic -lownlib 
> -lthirdpartylib -Wl,-Bdynamic -lpthread

This, of course, is the right workaround. Thank you!

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-

Reply via email to