Bug 175814 - devel/boost-all cannot use libc++
Summary: devel/boost-all cannot use libc++
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Office Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 05:30 UTC by Chen Xu
Modified: 2014-08-26 06:38 UTC (History)
0 users

See Also:


Attachments
file.diff (413 bytes, patch)
2013-02-04 05:30 UTC, Chen Xu
no flags Details | Diff
boost.txt (1.16 KB, text/plain; charset=UTF-8)
2013-04-04 13:30 UTC, c.kworr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 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 freebsd_triage 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
regards,
Bapt
Comment 3 c.kworr 2013-04-04 13:30:10 UTC
Hello.

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 freebsd_triage 2014-08-26 06:38:26 UTC
newer boost build happily with libc++