diff options
author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-04-03 19:46:16 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-04-11 08:18:01 -0700 |
commit | c67044715086459b391d25e7e62cf19a9484d08d (patch) | |
tree | 9434b9f8bc8087c412c378aeccd07ef80d8681ad /recipes-devtools | |
parent | 2c9678cce413fa6c6c84a8a631f4635a4f862f11 (diff) | |
download | meta-clang-c67044715086459b391d25e7e62cf19a9484d08d.tar.gz |
clang: 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 <dmitry.baryshkov@oss.qualcomm.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r-- | recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch b/recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch index 4ca259b..37fa818 100644 --- a/recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch +++ b/recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch | |||
@@ -35,7 +35,7 @@ new file mode 100644 | |||
35 | index 000000000000..6a0dd54b8eab | 35 | index 000000000000..6a0dd54b8eab |
36 | --- /dev/null | 36 | --- /dev/null |
37 | +++ b/llvm/tools/llvm-config/llvm-config | 37 | +++ b/llvm/tools/llvm-config/llvm-config |
38 | @@ -0,0 +1,52 @@ | 38 | @@ -0,0 +1,55 @@ |
39 | +#!/bin/bash | 39 | +#!/bin/bash |
40 | +# | 40 | +# |
41 | +# Wrapper script for llvm-config. Supplies the right environment variables | 41 | +# Wrapper script for llvm-config. Supplies the right environment variables |
@@ -68,6 +68,9 @@ index 000000000000..6a0dd54b8eab | |||
68 | + --cxxflags) | 68 | + --cxxflags) |
69 | + output="${output} ${CXXFLAGS}" | 69 | + output="${output} ${CXXFLAGS}" |
70 | + ;; | 70 | + ;; |
71 | + --libdir) | ||
72 | + output="${output} ${libdir}" | ||
73 | + ;; | ||
71 | + --ldflags) | 74 | + --ldflags) |
72 | + output="${output} ${LDFLAGS}" | 75 | + output="${output} ${LDFLAGS}" |
73 | + ;; | 76 | + ;; |