Boost logo

Boost-Build :

Subject: Re: [Boost-build] Compiling Boost for 32Bit on 64Bit system
From: Maik Beckmann (beckmann.maik_at_[hidden])
Date: 2008-09-26 16:31:55


2008/9/26 Steven Watanabe <watanabesj_at_[hidden]>:
> AMDG
>
> Stefan Weber wrote:
>>
>> I'm heavily struggling to build Boost in 32Bit mode in a 64Bit environment
>> (both, OS and CPU). The code that depends on the Boost libraries needs to be
>> built with -m32 option for g++, therefore I also need to build Boost in
>> 32Bit mode, right? Anyways, googling showed me that the following could make
>> sense:
>>
>> ./tools/jam/stage/bin.linuxx86_64/bjam --toolset=gcc --with-system
>> --with-thread --address-model=32 -d+2 --cxxflags=-m32 --linkflags=-m32
>> stage
>>
>
> ./tools/jam/stage/bin.linuxx86_64/bjam toolset=gcc --with-system
> --with-thread address-model=32 -d+2 cxxflags=-m32 linkflags=-m32 stage

The line
{{{
./tools/jam/stage/bin.linuxx86_64/bjam toolset=gcc --with-system
--with-thread \
architecture=x86 address-model=32 -d+2 stage
}}}
lets boost.build handle the suitable compile and link flags, for x86
in this case.

Best,
 -- Maik


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