Boost logo

Boost-Build :

Subject: Re: [Boost-build] Include / library configuration in site-config.jam
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-01-06 17:45:32


Thomas Suckow wrote:
> # Initializes the gcc toolset for the given version. If necessary, command may
> # be used to specify where the compiler is located. The parameter 'options' is a
> # space-delimited list of options, each one specified as
> # <option-name>option-value. Valid option names are: cxxflags, linkflags and
> # linker-type. Accepted linker-type values are aix, darwin, gnu, hpux, osf or
> # sun and the default value will be selected based on the current OS.
> # Example:
> # using gcc : 3.4 : : <cxxflags>foo <linkflags>bar <linker-type>sun ;
> #
> rule init ( version ? : command * : options * )
>
> I tried this once with <target-os> and it ignored it, is <architecture> special?

Christian Auby wrote:
> I really doubt you're supposed to do it this way, the manual does it
> like I did earlier:
>
> http://www.boost.org/doc/tools/build/doc/html/bbv2/tasks/crosscompile.html
>
> I guess it might be a bug in the conditionals? e.g. it only checks
> compiler first (gcc/msvc) and if that matches, is satisfied.

Well sorry about the confusion... I was thinking of the extra
"requirements" arg that I put into darwin.jam. But that I now realize,
forgot to put the same code into gcc.jam :-( Yes, Thomas is correct.
What I said only applies, as given, to the darwin (xgcc) toolset. But
you can do the same for any other toolset with a bit of "manual" labor:

import toolset ;
using gcc ;
using gcc : 4.0~arm : arm-none-linux-gnueabi-g++ ;
toolset.add-requirements
<toolset>gcc,<architecture>arm:<toolset-version>4.0~arm ;

Or something like that.. This technique has been mentioned a few times
in this list. So searching will reveal the actual syntax to use for
toolset.add-requirements.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org (msn) - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail

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