Boost logo

Boost Testing :

Subject: [Boost-testing] Problem building bjam for xlc on linuxppc
From: Chris Cambly (ccambly_at_[hidden])
Date: 2008-11-25 16:41:27


If we try to build bjam on linux using xlC the build fails because of an
invalid linker option. The file tools/jam/src/build.jam has the following:

## IBM VisualAge C++
toolset vacpp xlc : "-o " : -D
     :
     [ opt --release : -s -O3 -qstrict -qinline ]
     [ opt --debug : -g -qNOOPTimize -qnoinline -pg ]
     -I$(--python-include) -I$(--extra-include)
     : -L$(--python-lib[1]) -l$(--python-lib[2]) -bmaxdata:0x40000000 ;

The -bmaxdata linker option is only valid on AIX. If I am building with
xlC on Linux that linker option should not be specified.

I can do something like:

## IBM VisualAge C++
{
local linkopt = ; if $(OS) = AIX { linkopt = -bmaxdata:0x40000000 ; }
toolset vacpp xlc : "-o " : -D
     :
     [ opt --release : -s -O3 -qstrict -qinline ]
     [ opt --debug : -g -qNOOPTimize -qnoinline -pg ]
     -I$(--python-include) -I$(--extra-include)
     : -L$(--python-lib[1]) -l$(--python-lib[2]) $(linkopt) ;
}

Is this ok or is there a better way to do this? Sorry for asking, but I
have not been following the tools changes as closely as I should.


Boost-testing list run by mbergal at meta-comm.com