Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2006-05-17 10:36:34


Vladimir Prus wrote:
> 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.

I thought the comment explained it :-\ Basically it's possible to
install a GCC system, for cross-compiling or standalone, such that all
the binaries of the support programs are in a path local to the compiler
install location. This is the case with MinGW which, because Windows
doesn't have anything like a system archiver, has this in the compiler
bin dir:

addr2line.exe
ar.exe
as.exe
c++.exe
c++filt.exe
cpp.exe
dlltool.exe
dllwrap.exe
g++.exe
gcc.exe
gccbug
gcov.exe
gdb.exe
gprof.exe
ld.exe
mingw32-c++.exe
mingw32-g++.exe
mingw32-gcc-3.4.2
mingw32-gcc-3.4.5
mingw32-gcc.exe
mingw32-make.exe
mingwm10.dll
nm.exe
objcopy.exe
objdump.exe
ranlib.exe
readelf.exe
size.exe
strings.exe
strip.exe
windres.exe

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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