Boost logo

Boost-Build :

From: Thomas Klimpel (thomas.klimpel_at_[hidden])
Date: 2008-03-18 19:15:44


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?

Regards,
Thomas

-- 
"If the fool would persist in his folly he would become wise."
   - William Blake
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx

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