Skip to contentSkip to conversation

gimp: Add libexecinfo to linker flags

PATCH New Khem Raj 1 participant 1 message Mar 28, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 gimp: Add libexecinfo to linker flags

LLD reports backtrace() as undefined during linking on musl systems musl systems use libexecinfo to provide this API, the dependency is not enough, it needs to reflect in linker flags too, since the assumption is that backtrace() API in in libc ( glibc has it this way)

---
 meta-gnome/recipes-gimp/gimp/gimp_3.0.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-gnome/recipes-gimp/gimp/gimp_3.0.2.bb +2 -0
index 2018ea04c4..f56c12c89b 100644
@@ -44,6 +44,8 @@ DEPENDS = " \
 
 DEPENDS:append:libc-musl = " libexecinfo"
 
+LDFLAGS:append:libc-musl = " -lexecinfo"
+
 inherit meson gtk-icon-cache mime-xdg pkgconfig gettext gobject-introspection vala
 
 GIR_MESON_OPTION = 'can-crosscompile-gir'