From ea85ce74ede5ddea0b9e53a7624e0a4ca27b4660 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 24 Sep 2020 22:19:13 -0700 Subject: clang: Create symlinks with cross compile tuples This helps in running ptests e.g. perl which encodes the compiler during cross-compile and it is -clang and not simply `clang` since these tests are configured and compiled on build host and run on target, its requied to have same names on target as well. Signed-off-by: Khem Raj --- recipes-devtools/clang/clang_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index 96cec4e..ccdee23 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb @@ -189,6 +189,9 @@ endif()\n" ${D}${libdir}/cmake/llvm/LLVMExports-release.cmake lnr ${D}${nonarch_libdir}/clang ${D}${libdir}/clang rmdir --ignore-fail-on-non-empty ${D}${libdir} fi + for t in clang clang++ llvm-nm llvm-ar llvm-as llvm-ranlib llvm-strip; do + ln -sf $t ${D}${bindir}/${TARGET_PREFIX}$t + done } do_install_append_class-native () { -- cgit v1.2.3-54-g00ecf