Gentoo Archives: gentoo-commits

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