commit:     01762e9615c4aedcb4bc562c7a9d5fe2fd36dacb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  2 07:55:08 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct  2 07:57:55 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01762e96

sys-devel/llvm: Backport target syms from sys-devel/clang

 sys-devel/llvm/llvm-3.9.0.ebuild | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/sys-devel/llvm/llvm-3.9.0.ebuild b/sys-devel/llvm/llvm-3.9.0.ebuild
index 8ead13e..4514dd0 100644
--- a/sys-devel/llvm/llvm-3.9.0.ebuild
+++ b/sys-devel/llvm/llvm-3.9.0.ebuild
@@ -454,16 +454,12 @@ src_install() {
                        dosym "${i}-${clang_version}" "/usr/bin/${i}"
                done
 
-               # now create wrappers for all supported ABIs
+               # now create target symlinks for all supported ABIs
                for abi in $(get_all_abis); do
-                       local abi_flags=$(get_abi_CFLAGS "${abi}")
                        local abi_chost=$(get_abi_CHOST "${abi}")
                        for i in "${clang_tools[@]}"; do
-                               cat > "${T}"/wrapper.tmp <<-_EOF_ || die
-                                       #!${EPREFIX}/bin/sh
-                                       exec "${i}-${clang_version}" 
${abi_flags} "\${@}"
-                               _EOF_
-                               newbin "${T}"/wrapper.tmp 
"${abi_chost}-${i}-${clang_version}"
+                               dosym "${i}-${clang_version}" \
+                                       
"/usr/bin/${abi_chost}-${i}-${clang_version}"
                                dosym "${abi_chost}-${i}-${clang_version}" \
                                        "/usr/bin/${abi_chost}-${i}"
                        done

Reply via email to