From 3516b8b7558a69dfd06410b0c997d096a78221c9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 1 Sep 2016 11:20:05 +0200 Subject: Add libmissing This patch adds a libmissing library to mtd-utils, containing implementations of functionality found in glibc but typically missing from embedded C libraries such as uclibc ot musl. For now, the library only contains stub implementations of the backtrace*() family of functions. Signed-off-by: David Oberhollenzer Signed-off-by: Richard Weinberger --- tests/fs-tests/Makemodule.am | 5 +++++ tests/fs-tests/integrity/integck.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/fs-tests/Makemodule.am b/tests/fs-tests/Makemodule.am index 031355a..d3acaa5 100644 --- a/tests/fs-tests/Makemodule.am +++ b/tests/fs-tests/Makemodule.am @@ -2,6 +2,11 @@ integck_SOURCES = tests/fs-tests/integrity/integck.c integck_LDADD = libubi.a integck_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include +if HAVE_EXECINFO +else +integck_LDADD += libmissing.a +endif + test_1_SOURCES = tests/fs-tests/simple/test_1.c tests/fs-tests/lib/tests.c test_1_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tests/fs-tests/lib diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index 67384fa..7cb5305 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -40,6 +39,7 @@ #define PROGRAM_NAME "integck" #include "common.h" #include "libubi.h" +#include "libmissing.h" /* * WARNING! This is a dirty hack! The symbols for static functions are not -- cgit v1.2.3