diff options
| author | orbea <orbea@riseup.net> | 2024-04-03 20:12:30 -0700 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@bitmath.se> | 2024-04-04 09:10:06 +0200 |
| commit | b969a91d9c971d4cdfda72c7a7bffe63c826751b (patch) | |
| tree | 8f66890158ef58f150768ca28572e65037e97fac | |
| parent | 2ed588eccf83728452ce0fc30770e637a7c1374f (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.am | 6 |
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/ | |||
| 6 | mtdev_mapgen_SOURCES = mtdev-mapgen.c | 6 | mtdev_mapgen_SOURCES = mtdev-mapgen.c |
| 7 | 7 | ||
| 8 | mtdev_matching_SOURCES = mtdev-matching.c | 8 | mtdev_matching_SOURCES = mtdev-matching.c |
| 9 | mtdev_matching_LDFLAGS = -L$(top_builddir)/src/.libs/ -lmtdev | 9 | mtdev_matching_LDADD = $(top_builddir)/src/libmtdev.la |
| 10 | 10 | ||
| 11 | mtdev_test_SOURCES = mtdev-test.c | 11 | mtdev_test_SOURCES = mtdev-test.c |
| 12 | mtdev_test_LDFLAGS = -lmtdev -L$(top_builddir)/src/.libs/ | 12 | mtdev_test_LDADD = $(top_builddir)/src/libmtdev.la |
| 13 | 13 | ||
| 14 | mtdev_kernel_SOURCES = mtdev-kernel.c | 14 | mtdev_kernel_SOURCES = mtdev-kernel.c |
| 15 | mtdev_kernel_LDFLAGS = -L$(top_builddir)/src/.libs/ -lmtdev | 15 | mtdev_kernel_LDADD = $(top_builddir)/src/libmtdev.la |
