From: Andrew Miller (ak.miller_at_[hidden])
Date: 2008-05-22 01:34:32


Hi,

When building gcc on AIX, it is apparently usual to use the system
linker and not the ld from GNU binutils. See for example
http://gcc.gnu.org/ml/gcc-bugs/2005-12/msg01523.html (gcc doesn't even
compile on AIX 5.3.0.0 using ld from GNU binutils, in fact).

The below patch sets the correct options for building with gcc, using
the native linker, on AIX.

Patch is released under the Boost Software License version 1.

Best wishes,
Andrew

diff b/boost_1_35_0/tools/build/v2/tools/gcc.jam
a/boost_1_35_0/tools/build/v2/tools/gcc.jam
143a144,147
> else if [ os.name ] = AIX
> {
> linker = aix ;
> }
330c334
< if [ os.name ] != NT && [ os.name ] != OSF && [ os.name ] != HPUX

---
 > if [ os.name ] != NT && [ os.name ] != OSF && [ os.name ] != HPUX && 
[ os.name ] != AIX
613a618,622
 >
 >     case aix :
 >       {
 >           flags $(toolset).link OPTIONS : -Wl,-brtl : unchecked ;
 >       }