sys-libs/llvm-libunwind: Build static libc++* for tests in -9999
authorMichał Górny <mgorny@gentoo.org>
Wed, 12 Jun 2019 18:26:34 +0000 (20:26 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 13 Jun 2019 11:11:21 +0000 (13:11 +0200)
Build static libc++ & libc++abi to avoid linking problems against
libgcc.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild

index d4216d8cc8941b4b0c6071d4c0920ee0eb59023b..a5c5c542e433cf4be1150ed70177cb48c1230359 100644 (file)
@@ -92,8 +92,8 @@ build_libcxxabi() {
        local BUILD_DIR=${BUILD_DIR}/libcxxabi
        local mycmakeargs=(
                -DLIBCXXABI_LIBDIR_SUFFIX=
-               -DLIBCXXABI_ENABLE_SHARED=ON
-               -DLIBCXXABI_ENABLE_STATIC=OFF
+               -DLIBCXXABI_ENABLE_SHARED=OFF
+               -DLIBCXXABI_ENABLE_STATIC=ONF
                -DLIBCXXABI_USE_LLVM_UNWINDER=ON
                -DLIBCXXABI_INCLUDE_TESTS=OFF
 
@@ -111,8 +111,8 @@ build_libcxx() {
        local BUILD_DIR=${BUILD_DIR}/libcxx
        local mycmakeargs=(
                -DLIBCXX_LIBDIR_SUFFIX=
-               -DLIBCXX_ENABLE_SHARED=ON
-               -DLIBCXX_ENABLE_STATIC=OFF
+               -DLIBCXX_ENABLE_SHARED=OFF
+               -DLIBCXX_ENABLE_STATIC=ON
                -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF
                -DLIBCXXABI_USE_LLVM_UNWINDER=ON
                -DLIBCXX_CXX_ABI=libcxxabi