diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-04-10 05:54:43 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-11 11:44:22 +0100 |
| commit | e6a528d4d20c648c8d5a13ac71d354d31befb638 (patch) | |
| tree | 2e837d040f8eaf22b4c2426ed1dd21261943e4cf /meta/recipes-devtools | |
| parent | bb44b988271e6aa4f749dd50c93bec9f68ffa9b4 (diff) | |
| download | poky-e6a528d4d20c648c8d5a13ac71d354d31befb638.tar.gz | |
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).
(From OE-Core rev: c804ef9516d840e9bef717b6add77783a21a443a)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/llvm/llvm/llvm-config | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/llvm/llvm/llvm-config b/meta/recipes-devtools/llvm/llvm/llvm-config index 5e4ded2da5..6cf3e7578f 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 | |||
| 35 | --libs) | 35 | --libs) |
| 36 | output="${output} -lLLVM" | 36 | output="${output} -lLLVM" |
| 37 | ;; | 37 | ;; |
| 38 | --libdir) | ||
| 39 | output="${output} ${libdir}" | ||
| 40 | ;; | ||
| 38 | --link-shared) | 41 | --link-shared) |
| 39 | break | 42 | break |
| 40 | ;; | 43 | ;; |
