Boost logo

Boost :

Subject: Re: [boost] PCH support for clang-linux (clang-darwin tester needed)
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-02-14 10:06:08


Hi wash,

On Sunday, 13. February 2011 07:55:12 Bryce Lelbach wrote:
> I have committed a patch which fixes Boost.Build for clang-linux.

Thanks.

> There are three major distributions of clang for Linux; LLVM/Clang itself
> (source only), RPMs (source and binaries) and .debs (source and binaries).
> As the existing Boost.Build implementation of PCH support for Clang does
> not seem to by the clang versions shipped via any of these three mediums,
> I've junked the old bjam actions entirely and replaced them with actions
> that work.

That seems to cause havoc on x86_64

/usr/bin/ld: error: /home/hunold/src/devel/boost/bin.v2/libs/math/build/clang-
linux-2.9/debug/sph_neumannf.o: requires unsupported dynamic reloc; recompile
with -fPIC
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Seem the compile commands are now missing -fPIC. I think -fPIC should be
always added, as it is already done for gcc.jam. See the ML archives for
details and rationale

It would be nice if you could clean up clang-linux.jam after all issue have
been ironed out. Those commented out blocks are, well, annoying.

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
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk