From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-12-10 01:16:39
David Abrahams wrote:
>>2. Is it ever possible to link to static runtime if any lib
>> is dynamic? For example, in default setting both "-lm" and "-lc"
>> are linked dynamically. If I say
>> -Wl,-Bdynamic -lz -Wl,Bstatic
>> (here, the last element should affect runtime libs).
>> Then, -lz is linked dynamically (that's right),
>> "-lm" is linked statically (that's right, too),
> How did libm get involved? I don't see it in the command-line.
There are a few libraries that are added implicitly: libc,
libm, libstdc++, libgcc.
Actually, "libm" is part of C runtime, because it defines things
lib "sin", "log", etc.
>> but "-lc" is linked dynamically (althought it's part of C
>> runtime). I guess that's because "-lz" uses dynamic runtime.
>> What to do about that? I'm inclined to do nothing.
> Do you have any other options? If not, your choice is clear... ;->
I don't know other options...
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk