|
Boost-Build : |
From: Juergen Hunold (hunold_at_[hidden])
Date: 2006-02-19 07:38:08
Hi Jim !
On Friday 17 February 2006 17:00, Jim Douglas wrote:
> Vladimir Prus 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...
> *****************
> 1. The "-Wc,-fPIC" option should be "-Wl,-fPIC". c = compiler, l =
> linker ****************
No. -fPIC is a valid gcc _compile_ option.
"man gcc" yields (gcc-4.0.2 debian unstable)
--- snip--
-fPIC
If supported for the target machine, emit position-independent code,
suitable for dynamic linking and avoiding any limit on the size of the
global offset table. This option makes a difference on the m68k,
PowerPC and SPARC.
Position-independent code requires special support, and therefore works
only on certain machines.
--- snap ------
Those "certain machines" also contains AMD64. I encountered linking
problems on this platform due to the fact that "-fPIC" was not set
while doing compilation. I don't think this flag does anything harmful
when set and having no effects, so we should set it when compiling code
for shared linking...
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