Subject: [Boost-bugs] [Boost C++ Libraries] #2546: Cannot build bjam on Linux with vacpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-28 15:18:46
#2546: Cannot build bjam on Linux with vacpp
--------------------------------+-------------------------------------------
Reporter: ccambly_at_[hidden] | Type: Bugs
Status: new | Milestone: Boost.Jam 3.1.18
Component: Building Boost | Version: Boost Development Trunk
Severity: Problem | Keywords:
--------------------------------+-------------------------------------------
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.
The change in the patch file is:
## 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) ;
}
Rene: I couldn't find a uname that worked so I left it as OS
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2546> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC