Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2003-12-18 07:49:10


> > > Looking at the command line - the regex lib is listed on the command
> line
> > > twice, and I *think* this is the cause of the problems, although I'm
not
> > > sure - can you experiment?
> >
> > This duplication is intentional and AFAIK harmless. It allows
> > dependencies among various libraries to be properly resolved, since
> > dependencies must follow dependents in the gnu link line.
>
> I know it was intentional, but it's not harmless - removing the second
> "$(NEEDLIBS)" "$(NEEDLIBS)" part from gcc-tools.jam allows the regex-dll
> tests to link with mingw32.

Some further testing shows that we can make a mingw-toolset specific fix
here - putting $(NEEDLIBS) on the command line once and surrounding it like
so:

 -Wl--start-group $(NEEDLIBS) -Wl--end-group

So that lib order is unimportant. Patched toolset attached.

John




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk