Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-12-10 01:43:47


> Jason Merrill wrote:

>>>Okay, I've nearly done with the <link> feauture and
>>>associated support for -l libraries. I do have a couple
>>>of questions for gcc gurus.
>>>
>>>1. If I have two libraries, "a", and "b", and want to link
>>> the first one statically, and the second one dynamically,
>>> what should command line contain.
>>> If I try
>>>
>>> -Wl,-Bdynamic -la -Wl,-Bstatic -lb
>>>
>>> then it works on certain system. On another, this links
>>> both libraries statically, and I need
>>>
>>> -Wl,-Bdynamic -Wl,-la -Wl,-Bstatic -Wl,-lb
>>
>>Hmm, this looks like some strangeness in the g++ front-end to the
>>linker. Jason, do you know anything about this?
>
>
> The g++ driver moves any explicit -lm and -lc to the end of the command
> line so that they come after the implicit -lstdc++. Other libs should be
> unaffected.

Jason,
thanks for the clarification

It means there's no need to pass libraries via -Wl --- good.

The "strange" behaviour was on freshly installed Debian Woody
(gcc 2.95.4). Maybe there's something wrong in that
unofficial version. I'll recheck.

- Volodya

 


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