From: mike o (mike.otj_at_[hidden])
Date: 2008-03-28 14:18:43
Thanks for all of your comments.
The reason I asked about -fPIC showing up in the link steps because by
passing "linkflags=-fPIC" to bjam, I expected to see -fPIC in the link step
-- regardless of whether or not it's actually needed. I don't believe it
has any effect on the link step, but that's besides the point. I could have
passed "-abcdefg" and would still expect bjam to pass it along to ld.
On Fri, Mar 28, 2008 at 11:03 AM, Stefan Seefeld <seefeld_at_[hidden]>
> Roland Schwarz wrote:
> >> The most important recommendation is to always use -fpic or -fPIC
> >> when generating code which ends up in DSOs. (dynamically shared
> >> objects)
> > ...
> >> It is therefore mandatory to compile all code which can potentially
> >> end up in a DSO with -fpic / -fPIC since othzerwise the DSO might
> >> not work correctly.
> > Not claiming I understand everything he says in full. But I thought
> > the reference could be interseting to this case.
> Yes, but the question was about the linking step, not the code
> generation. I don't think -fPIC has any impact on the linker backend
> (i.e. 'ld').
> ...ich hab' noch einen Koffer in Berlin...
> Unsubscribe & other changes:
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