* [Buildroot] [PATCH 1/1] package/mtd: fix build with libexecinfo
@ 2022-01-15 15:06 Fabrice Fontaine
2022-02-01 21:46 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-15 15:06 UTC (permalink / raw)
To: buildroot; +Cc: Matt Weber, Fabrice Fontaine
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>
---
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
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/mtd: fix build with libexecinfo
2022-01-15 15:06 [Buildroot] [PATCH 1/1] package/mtd: fix build with libexecinfo Fabrice Fontaine
@ 2022-02-01 21:46 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-02-01 21:46 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot; +Cc: Matt Weber
On 15/01/2022 16:06, Fabrice Fontaine wrote:
> 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>
Applied to master, thanks.
Regards,
Arnout
> ---
> 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 [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-01 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-15 15:06 [Buildroot] [PATCH 1/1] package/mtd: fix build with libexecinfo Fabrice Fontaine
2022-02-01 21:46 ` 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.