Quantcast

How to build Boost with libc++?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to build Boost with libc++?

Henry Yeh
Hi All,

I'm a newbie to Boost, and I want to build boost_1_64_0 against libc++.
However, it seemed useless to pass flags cxxflags="-stdlib=libc++" and linkflags="-stdlib=libc++" as Boost would still end up linking against libstdc++.

I've noticed this post in the forum, but I don't understand clearly and I think the setting might be different from other OS(my OS is OS X 10.11).

Hope someone could kindly teach me how to build boost_1_64_0 against libc++ from source for OS X.

Thanks,

--
Henry Yeh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to build Boost with libc++?

Boost - Build mailing list
On Thu, Apr 27, 2017 at 3:13 AM, Henry Yeh via Boost-build <[hidden email]> wrote:
Hi All,

I'm a newbie to Boost, and I want to build boost_1_64_0 against libc++.
However, it seemed useless to pass flags cxxflags="-stdlib=libc++" and
linkflags="-stdlib=libc++" as Boost would still end up linking against
libstdc++.


I stuck this in my user-config.jam:

using clang : 11
: "/usr/bin/clang++"
: <cxxflags>"-std=c++11 -stdlib=libc++ -Wno-variadic-macros" <linkflags>"-stdlib=libc++"
;

and then built with "--toolset=clang-11"

-- Marshall

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Loading...