aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-01-24 03:06:41 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-01-24 03:06:41 +0100
commit81c59858a45c2d2d39473d181238a1c04ddf9655 (patch)
tree1058be3952230ba9c10123b68c94ec2e08413644
parent737d8963e7955a0afcc388af3e836c323ed251fb (diff)
downloadembedlog-81c59858a45c2d2d39473d181238a1c04ddf9655.tar.gz
embedlog-81c59858a45c2d2d39473d181238a1c04ddf9655.tar.bz2
embedlog-81c59858a45c2d2d39473d181238a1c04ddf9655.zip
tst/Makefile.am: statically link to embedlog
Some implementations of libtool will add -lembedlog to ld, which may cause ld to pick up embedlgo from system directory instead of source, which can lead to segfaults in tests when ABI is different. Perform static linking to path in source to make sure local lib is picked up. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--tst/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/tst/Makefile.am b/tst/Makefile.am
index d2b65f7..6acfd06 100644
--- a/tst/Makefile.am
+++ b/tst/Makefile.am
@@ -16,7 +16,7 @@ test_CFLAGS = -I$(top_builddir)/include \
$(COVERAGE_CFLAGS)
test_LDFLAGS = $(COVERAGE_LDFLAGS)
-test_LDADD = -lrb $(top_builddir)/src/libembedlog.la
+test_LDADD = -lrb $(top_builddir)/src/.libs/libembedlog.a
TESTS = $(check_PROGRAMS)
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \