Skip to contentSkip to conversation

taisei: Use libucontext with musl

PATCH New Khem Raj 1 participant 1 message Nov 24, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 taisei: Use libucontext with musl

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
---
 .../multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/dynamic-layers/multimedia-layer/recipes-graphics/taisei/taisei_1.4.2.bb +2 -2
index db38bb1547..5d368498dc 100644
@@ -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}"