From: Guilherme Amadio Date: Wed, 14 Nov 2018 14:41:49 +0000 (+0100) Subject: profiles: prefixify dynamic linker used by sys-devel/clang X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d7cd91a14608932fb2afe06635f9da5c0be8d225;p=gentoo.git profiles: prefixify dynamic linker used by sys-devel/clang Signed-off-by: Guilherme Amadio --- diff --git a/profiles/features/prefix/standalone/profile.bashrc b/profiles/features/prefix/standalone/profile.bashrc index d167e7a9155f..20a3aff74cf5 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 $?