From 803bc68d59a46ea68540f437ced6334cf3335a7e Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 13 Mar 2022 11:37:37 +0100 Subject: [PATCH] package/ola: fix build with libexecinfo Fix the following build failure raised on uclibc and musl since the reintroduction of the package in commit 16ff948444c3978d63f483344a3d92d994c64312: /home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arc-buildroot-linux-uclibc/10.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: common/.libs/libolacommon.so: undefined reference to `backtrace' Fixes: - http://autobuild.buildroot.org/results/4362b20d786a0f44268ec32a689c23ac6d3b71c6 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/ola/ola.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/ola/ola.mk b/package/ola/ola.mk index 557f454fe9..1b55ca440a 100644 --- a/package/ola/ola.mk +++ b/package/ola/ola.mk @@ -54,6 +54,11 @@ endef OLA_CONF_ENV = PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages OLA_MAKE_ENV = PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages +ifeq ($(BR2_PACKAGE_LIBEXECINFO),y) +OLA_DEPENDENCIES += libexecinfo +OLA_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lexecinfo" +endif + ## OLA Bindings and Interface selections ifeq ($(BR2_PACKAGE_OLA_WEB),y)