diff mbox series

[meta-gnome,1/4] libdex: Link with libucontext on musl

Message ID 20241122190131.2810521-1-raj.khem@gmail.com
State New
Headers show
Series [meta-gnome,1/4] libdex: Link with libucontext on musl | expand

Commit Message

Khem Raj Nov. 22, 2024, 7:01 p.m. UTC
Fixes errors like below

x86_64-yoe-linux-musl-ld.lld: error: undefined symbol: getcontext

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-gnome/recipes-gnome/libdex/libdex_0.8.1.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/libdex/libdex_0.8.1.bb b/meta-gnome/recipes-gnome/libdex/libdex_0.8.1.bb
index 1648639c3e..3ed2f6ccb3 100644
--- a/meta-gnome/recipes-gnome/libdex/libdex_0.8.1.bb
+++ b/meta-gnome/recipes-gnome/libdex/libdex_0.8.1.bb
@@ -7,6 +7,9 @@  inherit features_check gnomebase upstream-version-is-even gobject-introspection
 DEPENDS += " \
     glib-2.0 \
 "
+DEPENDS:append:libc-musl = " libucontext"
+
+LDFLAGS:append:libc-musl = " -lucontext"
 
 SRC_URI[archive.sha256sum] = "955475ad3e43aabd6f6f70435264b5ee77bd265bd95545211fee026b08d378a0"