From b969a91d9c971d4cdfda72c7a7bffe63c826751b Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 3 Apr 2024 20:12:30 -0700 Subject: test: link using libmtdev.la When linking internal dependencies that were linked using $(LIBTOOL) the ideal method is to use the generated libtool archive (.la) file. This fixes the build with slibtool which doesn't find -lmtdev during the build and explicitly requires the .la file to be used. Note the build will not fail if libmtdev is already installed to the system. Github PR: https://github.com/rydberg/mtdev/pull/2 Gentoo Issue: https://bugs.gentoo.org/928387 Signed-off-by: orbea --- test/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 6688b41..000d82c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -6,10 +6,10 @@ AM_CPPFLAGS=-I$(top_srcdir) -I$(top_srcdir)/include/ mtdev_mapgen_SOURCES = mtdev-mapgen.c mtdev_matching_SOURCES = mtdev-matching.c -mtdev_matching_LDFLAGS = -L$(top_builddir)/src/.libs/ -lmtdev +mtdev_matching_LDADD = $(top_builddir)/src/libmtdev.la mtdev_test_SOURCES = mtdev-test.c -mtdev_test_LDFLAGS = -lmtdev -L$(top_builddir)/src/.libs/ +mtdev_test_LDADD = $(top_builddir)/src/libmtdev.la mtdev_kernel_SOURCES = mtdev-kernel.c -mtdev_kernel_LDFLAGS = -L$(top_builddir)/src/.libs/ -lmtdev +mtdev_kernel_LDADD = $(top_builddir)/src/libmtdev.la -- cgit v1.2.3