Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-23 06:53:35

Tomas Puverle wrote:

> >>Here's a summary:
> >> - Library order is important so <linkflags> doesn't work. I tried.
> >
> > The specific problem is that <linkflags> are added to the beginning of
> > the command line, so references from the libraries/objects present later
> > are not resolved, right?
> This seems to be very similar to my recent regression test problem.

Indeed, except that Andre wants also to force static linking to a library. But
now I recall that Andre wants to link to libsup++, just like you, and... that
library does not come with shared variant.

So, Andre, it seems your use case would work if the <linkflags> were added to
the end of the linker's command line, not to the front? Could you try moving
the occurence of OPTIONS in and to the end?

Ah, and in that case it will even work if you write

<linkflags>"-Wl,-Bstatic -lsupc++".

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at