Boost logo

Boost-Build :

From: John Maddock (john_at_[hidden])
Date: 2005-08-03 07:42:09


> That was a workaround for a bug, that was just fixed in CVS.
>
> The real function of "explicit" is to say that the target should not be
> build
> unless explicitly requested. Without it, the "install" target is build
> twice,
> first time because it's part of Jamfile, and the second time because it's
> used
> in the "exe" rule.
>
> A bug in "install" target implementation caused it two produce two
> different
> targets for symlinks, and then V2 would detect that two different targets
> are
> assigned the same file name, and exit with an error.
>
> But as I've said, the bug is fixed so you can remove "explicit".

OK, I've attached a Jamfile that I've been playing with for the trivial
link_test program, if you want to test this for yourself put the attached
file under libs/config/test/link/test.

Some issues:

1) If the I use the default msvc toolset, with just a "using msvc ; " in the
user-config.jam then the libraries get mangled with "-vc" as the toolset
name, but of course autolinking expects "-vc71". I'm guessing that when we
switch to bbv2 for a release that 90% of users will just want the default
option to "just work", I'm not sure how we fix this though.
2) I haven't kept up with all the discussion on this list, but I thought
there was a patch to make msvc detection "just work" so that no changes to
user-config.jam were necessary? It sure would make life easier for new
users if bjam just configured itself without any need to go editing files
and placing them in some specific path first.
3) I can fix (1) by adding "using msvc : 7.1 ;" to the user-config.jam, but
name mangling is still wrong, bjam is producing a "-mt-d" suffix for the
library, but "-mt-gd" is expected.

I haven't tried any other build variants yet.

Thanks, John.
 ------=_NextPart_000_0036_01C59831.256F5580 Content-Type: application/octet-stream;
name="Jamfile.v2"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="Jamfile.v2"

[Attachment content not displayed.] ------=_NextPart_000_0036_01C59831.256F5580--


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