From 364511933811d76d4b866fe3aa04adff449cf94b Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Thu, 16 Feb 2023 18:41:34 +0100 Subject: [PATCH] package/fluent-bit: fix build with libexecinfo Fix the following build failure with libexecinfo raised since commit d649bcd3805a26cedb30120ebbdcf12f8fbf449f: /home/autobuild/autobuild/instance-9/output-1/host/lib/gcc/mips-buildroot-linux-musl/10.4.0/../../../../mips-buildroot-linux-musl/bin/ld: ../lib/monkey/library/libmonkey.a(mk_utils.c.o): in function `mk_utils_stacktrace': mk_utils.c:(.text+0x1578): undefined reference to `backtrace' Fixes: - http://autobuild.buildroot.org/results/63a6ba9104dfddbd7f6a7debadc0c6ef6e3a21f5 Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/fluent-bit/fluent-bit.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk index d618fdf1e2..8ba16399bb 100644 --- a/package/fluent-bit/fluent-bit.mk +++ b/package/fluent-bit/fluent-bit.mk @@ -56,6 +56,11 @@ FLUENT_BIT_CXXFLAGS += -fcommon FLUENT_BIT_CFLAGS += -U_FILE_OFFSET_BITS FLUENT_BIT_CXXFLAGS += -U_FILE_OFFSET_BITS +ifeq ($(BR2_PACKAGE_LIBEXECINFO),y) +FLUENT_BIT_DEPENDENCIES += libexecinfo +FLUENT_BIT_LDFLAGS += -lexecinfo +endif + ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) FLUENT_BIT_DEPENDENCIES += musl-fts FLUENT_BIT_LDFLAGS += -lfts