Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-14 09:02:42


On Tuesday 14 February 2006 16:44, Markus Schöpflin wrote:

> >> <cflags>"-version V6.5-042"
> >> <ldflags>"-version V6.5-042 -use_non_shared_libcxx"
> >> ;
> >>
> >> and lives in BOOST_BUILD_PATH as hp_cxx_65_042_tru64.jam.
> >
> > You don't need to create a new file, just put the above code into
> > user-config.jam.
>
> Is there a way to achieve this without messing around with a file living
> _inside_ the boost source tree?

Yes, create user-config.jam in your home directory (the value of $HOME
environment variable), and make all customization there.

>
> >> But bjam -a -n --v2 hp_cxx_65_042_tru64 still gives an error:
> >
> > And with above changed, you'd need dash between base toolset name and
> > version:
> >
> > hp_cxx-65_042_tru64
>
> My user-config.jam now looks like this:
>
> ---%<---
> import toolset : using ;
>
> using hp_cxx : 65_042_tru64 :
> <cflags>"-version V6.5-042"
> <ldflags>"-version V6.5-042 -use_non_shared_libcxx"
> ;
>
> using python : 2.4 : /opt/Python-2.4.1 ;
> --->%---
>
> Invoking bjam now gives:
>
> ---%<---
> boost-HEAD/libs/test/test> bjam -a -n --v2 hp_cxx-65_042_tru64
> warning: toolset hp_cxx initialization:
> warning: can't find user-provided command '<cflags>-version V6.5-042
> <ldflags>-version V6.5-042 -use_non_shared_libcxx'

Try this:

 using hp_cxx
        : 65_042_tru64 # version
    : # command not specified -- use default
    : # options
    <cflags>"-version V6.5-042"
    <ldflags>"-version V6.5-042 -use_non_shared_libcxx"
    ;

The previous code put options to the second argument -- which is the 'command'
argument.

- 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