diff mbox series

[meta-oe] taisei: Use libucontext with musl

Message ID 20241124165428.3673816-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe] taisei: Use libucontext with musl | expand

Commit Message

Khem Raj Nov. 24, 2024, 4:54 p.m. UTC
Fixes errors like
| koishi| Checking for function "getcontext" : NO (cached)
| koishi| Checking for function "setcontext" : NO
| koishi| Checking for function "makecontext" : NO (cached)
| koishi| Checking for function "swapcontext" : NO (cached)
| koishi| Message: ** Backend `ucontext_sjlj` is not supported
|
| ../git/subprojects/koishi/src/meson.build:43:4: ERROR: Problem encountered: Unsupported platform

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb b/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb
index db38bb1547..5d368498dc 100644
--- a/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb
+++ b/meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb
@@ -17,6 +17,8 @@  DEPENDS = "\
     opusfile \
     zstd \
 "
+DEPENDS:append:libc-musl = " libucontext"
+LDFLAGS:append:libc-musl = " -lucontext"
 
 RDEPENDS_${PN} = "\
     cglm (>= 0.7.8) \
@@ -48,6 +50,4 @@  PACKAGECONFIG[a_null] = "-Da_null=true,-Da_null=false"
 PACKAGECONFIG[developer] = "-Ddeveloper=true,-Ddeveloper=false"
 PACKAGECONFIG[docs] = "-Ddocs=true,-Ddocs=false,python3-docutils-native"
 
-
-
 FILES:${PN} += "${datadir}"