From 01762e9615c4aedcb4bc562c7a9d5fe2fd36dacb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 2 Oct 2016 09:55:08 +0200 Subject: [PATCH] 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 8ead13ed6220..4514dd0c239a 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 -- 2.26.2