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.

Thanks,

Mike




On Fri, Mar 28, 2008 at 11:03 AM, Stefan Seefeld <seefeld@sympatico.ca> wrote:
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...
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build