All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/mtd: fix build with libexecinfo
@ 2022-02-01 21:23 Arnout Vandecappelle
  0 siblings, 0 replies; only message in thread
From: Arnout Vandecappelle @ 2022-02-01 21:23 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=c97e139924c28f98dae13b3c0ef2f5c1f75e1d70
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix the following build failure raised on uclibc and musl since the
addition of libexecinfo package in commit
eea8ba446c10701a273432552108d80fb2224ef4:

/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-musleabihf/10.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: tests/fs-tests/integrity/integck-integck.o: in function `check_failed.constprop.0':
integck.c:(.text+0x96c): undefined reference to `backtrace'

Fixes:
 - http://autobuild.buildroot.org/results/9409ebf6517db87672f3f4df5909a8ac4abfe8af

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/mtd/mtd.mk | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index 9f4cc27ef1..45e7c0c61c 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -13,6 +13,15 @@ MTD_CPE_ID_VENDOR = mtd-utils_project
 MTD_CPE_ID_PRODUCT = mtd-utils
 MTD_INSTALL_STAGING = YES
 
+MTD_LDFLAGS = $(TARGET_LDFLAGS)
+
+ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
+MTD_DEPENDENCIES += libexecinfo
+MTD_LDFLAGS += -lexecinfo
+endif
+
+MTD_CONF_ENV += LDFLAGS="$(MTD_LDFLAGS)"
+
 ifeq ($(BR2_PACKAGE_MTD_JFFS_UTILS),y)
 MTD_DEPENDENCIES += zlib lzo host-pkgconf
 MTD_CONF_OPTS += --with-jffs
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-01 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 21:23 [Buildroot] [git commit] package/mtd: fix build with libexecinfo Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.