From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-26 04:34:18
On Friday 14 April 2006 22:47, Noel Belcourt wrote:
> We've had success building our C/C++ applications with Bjam so we want
> to build some of our legacy Fortran applications as well. These legacy
> codes have Fortran mains, not C mains. The only problem we're having
> is that, apparently, the exe main target always links by invoking the
> C++ compiler. Does anyone know how to change the exe main target to
> conditionally link with a Fortran compiler instead?
I know next to nothing about fortran application, so can you tell me more?
Is it just necessary to use a different linker? Then you can define new
'fortran-exe' target and define generator for that type so that it invokes
any linker you like. If this is too little information, just ask.
If you need to pass some extra options to linker, then <linkflags> might be
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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