|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-08 09:36:29
Vincent Jamart wrote:
> GCC has problems on Solaris9 (64bit kernel) with the gcc.jam supplied by
> defautl by jamboost v2.
>
> We have to add "-m64 -mcpu=v9" after $(CONFIG_COMMAND) calls in gcc.jam.
>
> How to define these cflags as default on Solaris9 without manually
> modifying gcc.jam from boost's tools on each platform?
First option is:
project whatever
: requirements <os>SOLARIS:<cxxflags>"-m64 -mcpu=v9"
;
You'd need to verify the spelling of 'SOLARIS' by creating file with
ECHO $(OS) ;
and running
bjam -f<the name of file>
Second option (that I've just introduced), is to put
using gcc : : : -m64 -mcpu=v9 ;
in site-config.jam on Solaris (you can drop the file to /etc so that you don't
overwrite it when upgdading Boost.Build).
(BTW, Larry, this also solve your desire to add rpath elements, you can now
really do:
using gcc : 3.4 : g++ : : -Wl,--rpath -Wl,whatever ;
A third option is to introduce <instruction-set> or <architecture> feature. We
talked about it but nobody implemented that.
- Volodya
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk