|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-17 10:22:32
On Sunday 26 March 2006 10:28, Rene Rivera wrote:
> Update of /cvsroot/boost/boost/tools/build/v2/tools
> In directory
> sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4358/tools/build/v2/tools
>
> Modified Files:
> gcc.jam
> Log Message:
> Fixes for MinGW compilation.
> * Configuration prefers using the AR in the compiler specific bin dir.
.....
> + #~ If it's not a system gcc install we should adjust the various
> + #~ programs as needed to prefer using the install specific versions.
> + #~ This is essential for correct use of MinGW and for cross-compiling.
> + local archiver =
> + [ common.get-invocation-command gcc
> + : ar : [ feature.get-values <archiver> : $(options) ] : $(bin)
> : PATH ] ; + flags gcc.archive .AR $(condition) : $(archiver[1]) ;
> + if $(.debug-configuration)
> + {
> + ECHO notice: using gcc archiver :: $(condition) :: $(archiver[1])
> ; + }
> }
Rene, can you clarify why we need to use 'ar' specific to the compiler?
The problem is that this change makes gcc use the .AR variable. The
gcc.archive action is inherited by intel-linux, but the .AR variable is not
set for intel-linux, so static linking with intel-linux does not work.
I'd like to fix this, but first would like to fully understand the change
you've did.
Thanks,
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