Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 521942

Summary: dev-libs/boost-1.55.0-r2: Support for cross-compilation for MinGW targets
Product: Gentoo Linux Reporter: Michael Seifert <m.seifert>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: boost-1.55.0-r2-mingw.patch

Description Michael Seifert 2014-09-02 10:04:21 UTC
dev-libs/boost-1.55.0-r2 does not cross-compile on MinGW toolchains.

Therefore, I created a patch that sets the "target-os" and "threadapi" options for b2, depending on the current CHOST.

Compilation on x86_64-w64-mingw32 works with USE="nls static-libs threads (-context) -debug -doc -icu -mpi -python -tools".

Reproducible: Always

Steps to Reproduce:
1. x86_64-w64-mingw32-emerge =dev-libs/boost-1.55.0-r2

Actual Results:  
Emerge fails

Expected Results:  
Emerge finishes successfully
Comment 1 Michael Seifert 2014-09-02 10:06:10 UTC
Created attachment 384090 [details, diff]
boost-1.55.0-r2-mingw.patch

Sets target-os=windows and threadapi=win32 when compiling for Windows targets.
Comment 2 Michael Seifert 2014-09-02 10:17:20 UTC

*** This bug has been marked as a duplicate of bug 330671 ***