Bug 175814

Summary: devel/boost-all cannot use libc++
Product: Ports & Packages Reporter: Chen Xu <windoze.net>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
boost.txt none

Description Chen Xu 2013-02-04 05:30:00 UTC
devel/boost-* hardcoded BJAM_ARGS in compiled.mk, there is no way to customize this arguments, thus cannot use c++11/libc++

Fix: Change devel/boost-all/compiled.mk, use "BJAM_ARGS += ..." instead of "BAJM_ARGS = ...", then we can effectively set "BJAMS_ARGS=..." in /etc/make.conf

Patch attached with submission follows:
How-To-Repeat: Build and install devel/boost-* ports, check /usr/local/lib/libboost_*.so, they are all linked to libstdc++ regardless what compilation/linking flags are set
Comment 1 Edwin Groothuis freebsd_committer 2013-02-04 20:49:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->office

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Baptiste Daroussin freebsd_committer 2013-02-05 07:19:29 UTC
The right fix would be to correctly pass the defauls/make.conf's
CXXFLAGS directly to bjam, should not be that much complicated, but I
have no time to this right now.

I already to it for fPIC
Comment 3 c.kworr 2013-04-04 13:30:10 UTC

Here is a small patch that adds an option to compile boost with libc++.

Actually I stumbled upon this report while trying to open mine.

The patch is fairly simple. If anyone wants a good catch on how to pass 
CXXFLAGS and LDFLAGS down to BJAM feel free to modify it.

Sphinx of black quartz, judge my vow.
Comment 4 Baptiste Daroussin freebsd_committer 2014-08-26 06:38:26 UTC
newer boost build happily with libc++