diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-05-28 17:37:52 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-06-08 11:37:54 -0700 |
commit | c48de926ac54802df7e1e4b7f91caa4fa4ef45b1 (patch) | |
tree | a008b3b8fe30b212851797a2c5261ceec380562a /recipes-devtools/clang/libcxx_git.bb | |
parent | 933795217f9142c246c359f92e8320516e5c66a5 (diff) | |
download | meta-clang-c48de926ac54802df7e1e4b7f91caa4fa4ef45b1.tar.gz |
libunwind: Install headers and pkgconfig file
This ensures it can replace nongnu libunwind
Use it only when selecting RUNTIME = "llvm"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/libcxx_git.bb')
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index dd87f1d..94e9311 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -70,5 +70,16 @@ ALLOW_EMPTY_${PN} = "1" | |||
70 | 70 | ||
71 | PROVIDES += "${@bb.utils.contains("RUNTIME", "llvm", "libunwind", "", d)}" | 71 | PROVIDES += "${@bb.utils.contains("RUNTIME", "llvm", "libunwind", "", d)}" |
72 | 72 | ||
73 | |||
74 | do_install_append() { | ||
75 | if ${@bb.utils.contains("RUNTIME", "llvm", "true", "false", d)} | ||
76 | then | ||
77 | install -Dm 0644 ${S}/libunwind/include/libunwind.h ${S}/libunwind/include/__libunwind_config.h ${D}${includedir} | ||
78 | install -Dm 0644 ${S}/libunwind/include/unwind.h ${D}${includedir}/unwind.h | ||
79 | install -d ${D}${libdir}/pkgconfig | ||
80 | sed -e 's,@LIBDIR@,${libdir},g;s,@VERSION@,${PV},g' ${S}/../libunwind.pc.in > ${D}${libdir}/pkgconfig/libunwind.pc | ||
81 | fi | ||
82 | } | ||
83 | |||
73 | BBCLASSEXTEND = "native nativesdk" | 84 | BBCLASSEXTEND = "native nativesdk" |
74 | TOOLCHAIN = "clang" | 85 | TOOLCHAIN = "clang" |