summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-02 17:21:33 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-02 17:21:33 +0100
commitdfb79c4a7df3b2a3c2f47f46b241e8213c174c2e (patch)
treede4fe997b425e1181e6c616974220e0364186cd3
parentsys-libs/libcxx: bump to 5.0.1 by Michael Weiser, bug #538364 (diff)
downloadprefix-dfb79c4a7df3b2a3c2f47f46b241e8213c174c2e.tar.gz
prefix-dfb79c4a7df3b2a3c2f47f46b241e8213c174c2e.tar.bz2
prefix-dfb79c4a7df3b2a3c2f47f46b241e8213c174c2e.zip
sys-libs/libcxx: fix path references by Michael Weiser, bug #538364
Closes: https://bugs.gentoo.org/538364 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6
-rw-r--r--sys-libs/libcxx/libcxx-5.0.1.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys-libs/libcxx/libcxx-5.0.1.ebuild b/sys-libs/libcxx/libcxx-5.0.1.ebuild
index 889825b71c..2aaca9ae4f 100644
--- a/sys-libs/libcxx/libcxx-5.0.1.ebuild
+++ b/sys-libs/libcxx/libcxx-5.0.1.ebuild
@@ -61,6 +61,15 @@ PATCHES=(
"${FILESDIR}/${PN}-3.9-cmake-link-flags.patch"
)
+src_prepare() {
+ default
+
+ # eprefixify static path references to libc++abi for symbol re-export to
+ # avoid linking against it twice in both /usr/lib and ${EPREFIX}/usr/lib
+ local lcpa=/usr/lib/libc++abi.dylib
+ sed -i -e "s,${lcpa},${EPREFIX}${lcpa},g" lib/CMakeLists.txt
+}
+
python_check_deps() {
has_version "dev-python/lit[${PYTHON_USEDEP}]"
}