From d7cd91a14608932fb2afe06635f9da5c0be8d225 Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Wed, 14 Nov 2018 15:41:49 +0100 Subject: profiles: prefixify dynamic linker used by sys-devel/clang Signed-off-by: Guilherme Amadio --- profiles/features/prefix/standalone/profile.bashrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'profiles/features/prefix') 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 $? -- cgit v1.2.3-65-gdbad