« Return to Thread: Patch: use correct linker options on AIX gcc builds

Patch: use correct linker options on AIX gcc builds

by Bugzilla from ak.miller@auckland.ac.nz :: Rate this Message:

Reply to Author | View in Thread

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 ;
 >       }

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

 « Return to Thread: Patch: use correct linker options on AIX gcc builds