Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2003-10-30 12:10:19

Hi Volodya,

> > I have shamelessly hacked response-file in builtin.jam in order not to
> > include libraries in static libs, but I'm sure there's a better way to
> > Pointers to how to fix this would be appreciated.
> First, the explanation. The generator, which creates EXE, tries
> create RSP file from all sources. The generator for RSP, defined at the
> of builtin.jam, accepts all types of libraries. As the result, searched
> is considered consumed and added to RSP.
> The workaround I have now is to put the following at the end of
> register-linker builtin.response-file : OBJ SEARCHED_LIB STATIC_LIB
> IMPORT_LIB : RSP : <link>shared ;
> register-linker builtin.response-file : OBJ : RSP : <link>static ;
> Instead of generator declaration that is currently there. Maybe, you can
> with this change? The modified file is at
> It works ok for your test case.

It works. Thanks!

> P.S. In fact, I start to think that RSP generator is too fancy and should
> removed. But that's not for M9 ;-)

While we're at it ;-) there's another problem with rsp files:

- you forget to add a dependency to the Jamfile;
- the linker fails saying that a library is missing;
- you add the dependency to the Jamfile;
- the rsp file is not rebuilt and the linker still fails.




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