Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-08 09:38:22


David Abrahams wrote:

> > In turns out that on X86_64 and on some "other platforms", shared
> > libraries must be build with -fPIC, for uknown reasons. While they can be
> > build without -fPIC on X86_32, that's also "nonstandard". So, I've
> > changed V2 to always pass -fPIC.
>
> I hope you're only doing that for shared libraries.

Yes. In fact, I've realized there's a problem. Now, -fPIC is added when when
<link>shared and <main-target-type>LIB is in properties. This means that for:

lib a : a.cpp b ;
obj b : b.cpp ;

The 'b.cpp' file won't be compiled with -fPIC. Hmm.

- 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