From: Dmitry Baryshkov Date: Thu, 10 Apr 2025 02:54:43 +0000 (+0300) Subject: llvm: handle libdir in llvm-config X-Git-Tag: uninative-4.8~778 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c804ef9516d840e9bef717b6add77783a21a443a;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git llvm: handle libdir in llvm-config The llvm-config wrapper also needs to override a --libdir switch, otherwise software (like mesa) end up using TMPDIR-based directory for Clang resource lookup (and also encoding TMPDIR into the target binary). Signed-off-by: Dmitry Baryshkov Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/llvm/llvm/llvm-config b/meta/recipes-devtools/llvm/llvm/llvm-config index 5e4ded2da5b..6cf3e7578fa 100644 --- a/meta/recipes-devtools/llvm/llvm/llvm-config +++ b/meta/recipes-devtools/llvm/llvm/llvm-config @@ -35,6 +35,9 @@ for arg in "$@"; do --libs) output="${output} -lLLVM" ;; + --libdir) + output="${output} ${libdir}" + ;; --link-shared) break ;;