From: Kirill Lapshin (gclbb-jamboost_at_[hidden])
Date: 2003-06-29 15:13:04
I have a need to link .a library with msvc, however boost.build silently
replaces library extension to .lib. It's an external precompiled library
explicetly configured with <name>yaddada/foobar.a, I am running windows
verion of bjam with M4 boost.build.
It is not very common use case, but it is not as rare as one might
assume. For instance those who use boost.ublas might want to take
advantage of ublas bindings to use ATLAS and Lapack routines on ublas
matrices. The typical usage of ATLAS on windows is to compile it with
gcc and link resulting atlas.a file to msvc compiled code.
I tried to find offending jam code but did not have much luck. It's
quite hard to grep for 'lib' or 'a'. There are couple of places wich
tools/msvc.jam: $(.LD) $(LINKFLAGS) /out:"$(<:W)"
)" "$(FINDLIBS:S=.lib)" $(USER_LINKFLAGS) @"$(>:W)"
but removing extension substitution in there did not help. Could someone
shed some light on it, please?
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