|
Boost-Build : |
From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2008-03-28 14:03:58
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').
Regards,
Stefan
-- ...ich hab' noch einen Koffer in Berlin...
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