From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-04-15 03:22:48
On Sunday 03 April 2005 19:26, John Maddock wrote:
> Is bjam v2 usable with cygwin gcc?
I don't have up-to-date V2 tests there, but some time ago they looked OK.
> I would like to be able to build quickbook under cygwin (as all of my
> existing Boostbook setup is cygwin based), but I'm running up against no
> end of issues:
> bjam --v2 won't link quickbook (lots of duplicate symbol errors), I found
> some information on the cause here:
> http://root.cern.ch/phpBB2/viewtopic.php?t=1696&highlight=& and seems we're
> currently doing just about everything wrong, we need:
> -Wl,--enable-runtime-pseudo-reloc -Wl,--export-all-symbols [all
> objects] -Wl,--enable-auto-import
Any ideas why those options are needed? And what they do? Especially the
first? I'd rather figure out what's going on there and add a relevant test.
> on the link command line, and apparently cygwin won't link with dll's which
> don't end in ".dll" either - currently it's linking against a dll that has
> Boost's version number encoded in *both* the name, and as a suffix, why
> does this need to appear twice like this?
I wish I new. At least on Unix, V1 has exactly the same behaviour -- the
version is both in name and in suffix. I just copied it over.
> Finally, since Boost.Test can't be used as a dll on Windows at all (and a
> few other platforms like Darwin I believe), all the tests that depend upon
> Boost.Test fail as well.
> I tried building with:
> bjam --v2 runtime-link=static
> as the docs suggest, but all I got was bjam internal errors saying that
> "runtime-link" was not a known feature.
bjam --v2 link-runtime=static
is the right spelling. Do you have a link to the doc which has the wrong one?
> Is there a way to build and use static libraries, while still linking
> against the dll runtime? If not there certainly should be, this is a very
> common build situation IMO (on Windows in any case).
I think the above command should do what you're asking for.
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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