Boost logo

Boost Users :

Subject: Re: [Boost-users] bjam cross compilation using mingw32 doesn't use mingw32-ar ?
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2009-02-22 11:51:36


Hi Ákos,

On Sunday 22 February 2009, Ákos Maróy wrote:
> I'm trying to cross-compile boost using mingw32, doing the following
> steps:
>
> echo "using gcc : : mingw32-g++ ;" >> user-config.jam

> I did some search, and one suggestion was that the build process
> didn't use mingw32-ar for creating the libraries? if so, how could I
> make bjam use mingw32-ar instead of just ar?

The same problem here, I use the following:

using gcc : 4.2 : /usr/bin/i586-mingw32msvc-g++
            : # options
                <rc>i586-mingw32msvc-windres
                <archiver>i586-mingw32msvc-ar
             ;

You need to explicitly state <rc>, too. Else Boost.Build will simply use
the "null" fallback using an empty object file.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net