|
Boost-Build : |
From: hamletclaud (hamletclaud_at_[hidden])
Date: 2005-07-19 11:23:07
Hi Pedro,
--- In jamboost_at_[hidden], "Pedro Ferreira"
<pedro.ferreira_at_m...> wrote:
>
> you can do something like:
>
> lib required_system_library : : <name>greatlib <os>LINUX ;
> lib required_system_library : : <name>greatlib_xy <os>MACOSX ;
>
> exe final_exe : source1.cpp required_system_library ;
Thanks for your help and the quick answer!
Unfortunately, this approach doesn't seem to work. Under MacOSX bjam
gives the following error message:
----------
[...]/boost-build/build/feature.jam:431: in
feature.validate-value-string from module feature
error: "LINUX" is not a known value of feature <os>
error: legal values: "MACOSX"
[...]
----------
Under Linux the error message is the same, just LINUX and MACOSX are
exchanged. Obviously, <os> can only carry the value of the real host
OS --- which is somewhat strange.
I use boost-build-2.0-m10.
Any idea?
>
> ----- Original Message -----
> From: "hamletclaud" <hamletclaud_at_y...>
> To: <jamboost_at_[hidden]>
> Sent: Tuesday, July 19, 2005 2:50 PM
> Subject: [jamboost] [V2] Choosing library names depending on the OS
>
>
> > Hi!
> >
> > Relates to: Boost Build V2
> >
> > I have an executable which as one of its sources uses a system
> > library, so:
> >
> > ------
> > lib required_system_library
> > :
> > : <name>greatlib
> > ;
> >
> > exe final_exe :
> > source1.cpp
> >
> > required_system_library
> > ;
> > --------
> >
> > However, the system library has different names under Linux and
> > Darwin. I would thus like to choose the library name (say, "greatlib"
> > for Linux, but "greatlib_xy" for Darwin) depending on the OS, much as
> > I can easily do for variants, optimization and other factors.
> > This must be trivial, but in my stupidity I can't find the solution in
> > the documentation nor in the jam source.
> >
> > Many thanks in advance!
> >
> > Claudius
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
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