1 |
commit: daff852655b93c8bc44c71b3c14184b4c3bbf1f2 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 2 07:47:28 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 2 07:57:53 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daff8526 |
7 |
|
8 |
sys-devel/clang: Use target symlinks instead of wrappers |
9 |
|
10 |
Create symlinks for ABI targets instead of wrappers since clang already |
11 |
processes target prefixes in argv[0]. |
12 |
|
13 |
sys-devel/clang/clang-9999.ebuild | 10 +++------- |
14 |
1 file changed, 3 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild |
17 |
index cedfc02..adca5ce 100644 |
18 |
--- a/sys-devel/clang/clang-9999.ebuild |
19 |
+++ b/sys-devel/clang/clang-9999.ebuild |
20 |
@@ -231,16 +231,12 @@ src_install() { |
21 |
dosym "${i}-${clang_version}" "/usr/bin/${i}" |
22 |
done |
23 |
|
24 |
- # now create wrappers for all supported ABIs |
25 |
+ # now create target symlinks for all supported ABIs |
26 |
for abi in $(get_all_abis); do |
27 |
- local abi_flags=$(get_abi_CFLAGS "${abi}") |
28 |
local abi_chost=$(get_abi_CHOST "${abi}") |
29 |
for i in "${clang_tools[@]}"; do |
30 |
- cat > "${T}"/wrapper.tmp <<-_EOF_ || die |
31 |
- #!${EPREFIX}/bin/sh |
32 |
- exec "${i}-${clang_version}" ${abi_flags} "\${@}" |
33 |
- _EOF_ |
34 |
- newbin "${T}"/wrapper.tmp "${abi_chost}-${i}-${clang_version}" |
35 |
+ dosym "${i}-${clang_version}" \ |
36 |
+ "/usr/bin/${abi_chost}-${i}-${clang_version}" |
37 |
dosym "${abi_chost}-${i}-${clang_version}" \ |
38 |
"/usr/bin/${abi_chost}-${i}" |
39 |
done |