|
Boost-Build : |
Subject: Re: [Boost-build] #7706 : cross compiling of threads library - JamFile.v2
From: Jürgen Hunold (jhunold_at_[hidden])
Date: 2012-12-11 03:26:55
Hi Vicente,
On Monday, 10. December 2012 23:57:18 Vicente J. Botet Escriba wrote:
> Le 10/12/12 20:59, Jürgen Hunold a écrit :
> When I try to compile for windows I get
>
> ************************************************************
> Trying to build Boost.Thread with pthread support.
> If you need pthread you should specify the paths.
> You can specify them in site-config.jam, user-config.jam
> or in the environment.
> For example:
> PTW32_INCLUDE=C:\Program Files\ptw32\Pre-built2\include
> PTW32_LIB=C:\Program Files\ptw32\Pre-built2\lib
> ************************************************************
> darwin.compile.c++
> ../../../bin.v2/libs/chrono/build/darwin-4.7.0x/debug/target-os-windows/thre
> adapi-win32/threading-multi/chrono.obj
>
> as I have not a cross compiler installed. Until I install one, could
> someone check if the patch works?
Sorry, the patch works when crosscompiling for windows from Linux and for
native building on Windows.
Please find a modified patch attached which sets <threadapi>win32 only when
targeting windows.
Caveats (also old patch):
- the remaining rules report "pthread" when "win32" is selected. This is
hidden deep in the project setup I think.
- Selecting "pthread" when crosscompiling does not work. Currently no idea how
to fix this.
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold_at_gmx.eu ! Germany
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