summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2024-04-03 20:12:30 -0700
committerHenrik Rydberg <rydberg@bitmath.se>2024-04-04 09:10:06 +0200
commitb969a91d9c971d4cdfda72c7a7bffe63c826751b (patch)
tree8f66890158ef58f150768ca28572e65037e97fac
parent2ed588eccf83728452ce0fc30770e637a7c1374f (diff)
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 <orbea@riseup.net>
-rw-r--r--test/Makefile.am6
1 files 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/
6mtdev_mapgen_SOURCES = mtdev-mapgen.c 6mtdev_mapgen_SOURCES = mtdev-mapgen.c
7 7
8mtdev_matching_SOURCES = mtdev-matching.c 8mtdev_matching_SOURCES = mtdev-matching.c
9mtdev_matching_LDFLAGS = -L$(top_builddir)/src/.libs/ -lmtdev 9mtdev_matching_LDADD = $(top_builddir)/src/libmtdev.la
10 10
11mtdev_test_SOURCES = mtdev-test.c 11mtdev_test_SOURCES = mtdev-test.c
12mtdev_test_LDFLAGS = -lmtdev -L$(top_builddir)/src/.libs/ 12mtdev_test_LDADD = $(top_builddir)/src/libmtdev.la
13 13
14mtdev_kernel_SOURCES = mtdev-kernel.c 14mtdev_kernel_SOURCES = mtdev-kernel.c
15mtdev_kernel_LDFLAGS = -L$(top_builddir)/src/.libs/ -lmtdev 15mtdev_kernel_LDADD = $(top_builddir)/src/libmtdev.la