Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to build an external library using a makefile.
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2008-11-21 03:57:15

Alex Richardson wrote:


> Unfortunately, the mythirdpartylib target fails because
> 'third-party-lib.a' does not exist. (It won't exist until after the
> 'makelib' action was run). It appears that the my
> "third-party-lib.flag" target does not get built before it evaluates
> the <file> statement.
> Is there a good/standard way to use 'makefile' based libraries from a
> Jamfile?

I really don't know if there's a simple way of doing that.

I've taken a different approach for solving the problem; create a Jamfile
for the external library. In my experience, it's been really easy to do
that, even for non-trivial libraries. This also helps alleviate the problem
where the makefile-based project and the Boost.Build project uses
ABI-incompatible options for compilation.

/ Johan

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