Boost logo

Boost-Build :

From: Konstantin Litvinenko (darkangel_at_[hidden])
Date: 2005-01-20 07:07:19


Hello, Toon!
You wrote on Thu, 20 Jan 2005 12:17:59 +0100:


 TK> Hi all,

 TK> I'm adding fortran toolsets to bjam. However the linking is always done
 TK> by the compiler-driver or the linker directly (which is described in
 TK> the toolset for the C++ compiler). However when creating an executable
 TK> using object files compiled from fortran additional libraries need to
 TK> be passed to the linker because of the dependency of the fortran
 TK> sources on the fortran runtime-libraries. Any ideas how I can do that ?

 TK> Any clue is welcome.

 TK> toon

    When I faced with similar problem I did this:

lib BusinessLogic :
                   $(CPP_SOURCES)
                   /runtime-dlls//runtime
                  ;

and create runtime-dlls project

project runtime-dlls ;
import type ;

type.register BPL : bpl : SHARED_LIB ;

# borland builder runtime files
lib cc3260mt : : <file>builder/6.4/cc3260mt.dll <toolset>borland-6.4 <threading>multi <link-runtime>shared ;
lib stlpmt45 : : <file>builder/6.4/stlpmt45.dll <toolset>borland-6.4 <threading>multi <link-runtime>shared ;
lib borlndmm : : <file>builder/6.4/borlndmm.dll <toolset>borland-6.4 <threading>multi <link-runtime>shared ;
lib visualclx60 : : <file>builder/6.4/visualclx60.bpl <toolset>borland-6.4 <link-runtime>shared ;
lib qtintf : : <file>builder/6.4/qtintf.dll <toolset>borland-6.4 <link-runtime>shared ;
lib rtl60 : : <file>builder/6.4/rtl60.bpl <toolset>borland-6.4 <link-runtime>shared ;

# msvc runtime files

lib msvci70 : : <file>msvc/7.0/msvci70.dll ;
lib msvcp70 : : <file>msvc/7.0/msvcp70.dll ;
lib msvcr70 : : <file>msvc/7.0/msvcr70.dll ;
lib msvci70d : : <file>msvc/7.0/msvci70d.dll ;
lib msvcp70d : : <file>msvc/7.0/msvcp70d.dll ;
lib msvcr70d : : <file>msvc/7.0/msvcr70d.dll ;

alias runtime : cc3260mt stlpmt45 borlndmm rtl60 : <toolset>borland-6.4 <link-runtime>shared ;
alias clx-runtime : qtintf visualclx60 : <toolset>borland-6.4 <link-runtime>shared ;
alias runtime : msvci70 msvcp70 msvcr70 : <toolset>msvc-7 <threading>multi <link-runtime>shared <variant>release ;
alias runtime : msvci70d msvcp70d msvcr70d : <toolset>msvc-7 <threading>multi <link-runtime>shared <variant>debug ;

With best regards, Konstantin Litvinenko.


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