sys-devel/llvm: Backport target syms from sys-devel/clang
authorMichał Górny <mgorny@gentoo.org>
Sun, 2 Oct 2016 07:55:08 +0000 (09:55 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 2 Oct 2016 07:57:55 +0000 (09:57 +0200)
sys-devel/llvm/llvm-3.9.0.ebuild

index 8ead13ed6220d656ea59b0e5dd78ed7d0cd95b6c..4514dd0c239a608015cd722d931604d3b058ad2f 100644 (file)
@@ -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