profiles: allow USE=libunwind for sys-libs/libcxxrt, #589352
authorLei Zhang <zhanglei.april@gmail.com>
Sun, 17 Jul 2016 05:21:35 +0000 (13:21 +0800)
committerMichał Górny <mgorny@gentoo.org>
Mon, 1 Aug 2016 21:49:26 +0000 (23:49 +0200)
We can use -rtlib=compiler-rt to tell clang not to link binaries with libgcc_s.
Re-enabling this flag allows us to build libcxx against libcxxrt and libunwind,
thus having a GCC-free C++ runtime stack.

profiles/base/package.use.mask

index 5ba6b4dcbac74e76aa8de474b886236c17e4eaa5..e93afbc3ec455954c5e60e5f4c9d6dbaf05f434b 100644 (file)
@@ -547,13 +547,6 @@ x11-libs/cairo gles2
 dev-libs/weston rpi
 <dev-libs/weston-1.9.0 gles2
 
-# Alexis Ballier <aballier@gentoo.org> (03 Jul 2013)
-# The idea behind using libunwind there is to avoid needing to link to libgcc_s
-# and have a C++ stack without gcc with libcxx.
-# However, in any case, clang links its binaries to libgcc_s, hence at the
-# moment there is not much point in enabling this.
-sys-libs/libcxxrt libunwind
-
 # Sergey Popov <pinkbyte@gentoo.org> (08 Jun 2013)
 # mask because requires unstable depends not ready for the stabilization
 app-leechcraft/leechcraft-meta unstable