From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-08-26 11:14:20
On Tuesday 26 August 2008 18:05:58 Jim Gallagher wrote:
> >> In tools/acc.jam, I added:
> >> flags acc CFLAGS <pic>off : ;
> >> flags acc CFLAGS <pic>on : +Z ;
> >> This seems to work, but I'm not sure that "feature pic" belongs in
> >> tools/builtin.jam. Is this the right place? I also noticed a commented
> >> out line in acc.jam regarding an old feature called shared-linkable
> >> that no longer exists, which appears to have done the same thing.
> >> Should I resurrect the old feature?
> > Why do you need this pic feature? For gcc, -fPIC is added when link=shared
> > in in effect. It causes issues sometimes, say if one builds a static
> > libraries which is then linked into a shared library, but unless you have
> > that problem already, I'd suggest keying on link=shared.
> > - Volodya
> We are not using the gcc toolset, rather the HP-UX aCC toolset.
Yes, I realize. The question is why, whereas gcc activates PIC for link=shared,
you want some new feature for HP-UX?
> The HP
> compilers do not generate position independent code by default, and
> boost build did not add the appropriate compiler switches. When the
> link step came, it errored out because +Z was not specified.
I presume PIC, and +Z option, is not required at all times? Then, the
error has some specific reason -- for example trying to build shared
library without PIC code. What reason that was.
Will adding +Z for link=shared fix that?
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