commit: d7cd91a14608932fb2afe06635f9da5c0be8d225
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 14 14:41:49 2018 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Thu Nov 15 13:37:33 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7cd91a1
profiles: prefixify dynamic linker used by sys-devel/clang
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
profiles/features/prefix/standalone/profile.bashrc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/profiles/features/prefix/standalone/profile.bashrc
b/profiles/features/prefix/standalone/profile.bashrc
index d167e7a9155..20a3aff74cf 100644
--- a/profiles/features/prefix/standalone/profile.bashrc
+++ b/profiles/features/prefix/standalone/profile.bashrc
@@ -26,6 +26,9 @@ elif [[ ${CATEGORY}/${PN} == sys-devel/clang &&
${EBUILD_PHASE} == configure ]];
sed -i -e "s@DEFAULT_SYSROOT \"\"@DEFAULT_SYSROOT \"${EPREFIX}\"@"
"${S}"/CMakeLists.txt
eend $?
pushd "${S}/lib/Driver/ToolChains" >/dev/null
+ ebegin "Use dynamic linker from ${EPREFIX}"
+ sed -i -e "/LibDir.*Loader/s@return \"\/\"@return \"${EPREFIX%/}/\"@"
Linux.cpp
+ eend $?
ebegin "Remove --sysroot call on ld for native toolchain"
sed -i -e "$(grep -n -B1 sysroot= Gnu.cpp | sed -ne '{1s/-.*//;1p}'),+1 d"
Gnu.cpp
eend $?