diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-10-06 14:22:20 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-10-06 15:28:57 +0200 |
commit | 1e7008e09bee9cbb9c4f99397210dc0b0cf0ce62 (patch) | |
tree | e6f1155c3960ffac0ccf308a28ec91b9a839cc5c | |
parent | sys-libs/llvm-libunwind: Install headers, req for #596340 (diff) | |
download | gentoo-1e7008e09bee9cbb9c4f99397210dc0b0cf0ce62.tar.gz gentoo-1e7008e09bee9cbb9c4f99397210dc0b0cf0ce62.tar.bz2 gentoo-1e7008e09bee9cbb9c4f99397210dc0b0cf0ce62.zip |
sys-libs/libcxxabi: Pass libunwind include & (fake) src path, #596340
-rw-r--r-- | sys-libs/libcxxabi/libcxxabi-3.9.0.ebuild | 7 | ||||
-rw-r--r-- | sys-libs/libcxxabi/libcxxabi-9999.ebuild | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sys-libs/libcxxabi/libcxxabi-3.9.0.ebuild b/sys-libs/libcxxabi/libcxxabi-3.9.0.ebuild index 46845482e465..a74a53d98e9f 100644 --- a/sys-libs/libcxxabi/libcxxabi-3.9.0.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-3.9.0.ebuild @@ -24,7 +24,7 @@ RDEPEND=" libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] - sys-libs/llvm-libunwind[static-libs?,${MULTILIB_USEDEP}] + >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}] ) )" DEPEND="${RDEPEND} @@ -66,6 +66,11 @@ multilib_src_configure() { -DLLVM_INCLUDE_TESTS=$(usex test) -DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx-${PV}.src/include + # upstream is omitting standard search path for this + # probably because gcc & clang are bundling their own unwind.h + -DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include + # this only needs to exist, it does not have to make sense + -DLIBCXXABI_LIBUNWIND_SOURCES="${T}" ) if use test; then mycmakeargs+=( diff --git a/sys-libs/libcxxabi/libcxxabi-9999.ebuild b/sys-libs/libcxxabi/libcxxabi-9999.ebuild index 66de8aaa299b..e84bfd70f849 100644 --- a/sys-libs/libcxxabi/libcxxabi-9999.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-9999.ebuild @@ -25,7 +25,7 @@ RDEPEND=" libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] - sys-libs/llvm-libunwind[static-libs?,${MULTILIB_USEDEP}] + >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}] ) )" DEPEND="${RDEPEND} @@ -69,6 +69,12 @@ multilib_src_configure() { -DLLVM_INCLUDE_TESTS=$(usex test) -DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx/include + # upstream is omitting standard search path for this + # probably because gcc & clang are bundling their own unwind.h + -DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include + # this only needs to exist, it does not have to make sense + # FIXME: remove this once https://reviews.llvm.org/D25314 is merged + -DLIBCXXABI_LIBUNWIND_SOURCES="${T}" ) if use test; then mycmakeargs+=( |