Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-03-21 02:00:36


Thomas Klimpel wrote:

> I'm trying to convert the following section from a boost.build v1 Jamfile
>
> BLAS_PATH ?= /usr/lib ;
> BLAS_LIB ?= blas g2c ;
>
> exe blas1
> : blas1.cpp
> : <include>$(BOOST_ROOT)
> <include>$(BOOST)
> <library-path>$(BLAS_PATH)
> <find-library>$(BLAS_LIB)
> ;
>
> to a boost.build v2 Jamfile.v2. The only solution I could come up with was using <linkflags>, but
> the documentation gave me the impression that <linkflags> is only intended for exceptional
> situations. Now linking against an external library doesn't seem that exceptional to me.
>
>
> BLAS_PATH ?= -L/usr/lib ;
> BLAS_LIB ?= -lblas -lg2c ;
>
> exe blas1
> : blas1.cpp
> : <include>$(BOOST_ROOT)
> <include>$(BOOST)
> <linkflags>$(BLAS_PATH)
> <linkflags>$(BLAS_LIB)
> ;
>
>
> Is this solution "correct", or is there a better/simpler solution?

Do the docs at:

        http://boost.org/boost-build2/doc/html/bbv2/tasks/libraries.html

help?

- Volodya


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