Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2006-02-20 07:13:51


Hi Jim !

On Monday 20 February 2006 12:14, Jim Douglas wrote:
> Juergen Hunold wrote:
> > On Friday 17 February 2006 17:00, Jim Douglas wrote:
> >>******************
> >>1. The "-ftemplate-depth-100" is incorrect because it is hard coded
> >>into the gcc action. It should be "-Wc,-ftemplate-depth-100"
> >
> > Well, that one should really be configurable. And its value is 255 in
> > the gcc toolset of V1, by the way...
>
> I agree. Hard coding anything into the command line is bad practise. I
> have to assume that the change from 255 in bbv1 to 100 in bbv2 is a
> considered change.

No, I think this is just an oversight.

> >>*****************
> >>1. The "-Wc,-fPIC" option should be "-Wl,-fPIC". c = compiler, l =
> >>linker ****************
> >
> > No. -fPIC is a valid gcc _compile_ option.
>
> Well, that's what I thought, but the current build system seems to have
> -fPIC being passed to the compile and link phases...?

Well, yes, thats correct. I need -fPIC when compiling and -fPIC when linking.
On x86_64 you get strange linker errors when omitting -fPIC during
compilation. And -fPIC tells the linker to emit a shared library. I think
the current configuration should work for qcc's g++ as well.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57  ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99  ! Lister Straße 15
* hunold_at_[hidden]          ! www.ive-mbh.de

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