Test dynamic libraries should not be installed

Tag the libraries with check_ to prevent them being installed
by "make install".  Additionally make check requires .so to be
create which requires .lai files to be constructed which, in
turn, requires -rpath <dir> as part of "linking" the .la file.
This commit is contained in:
Mark Andrews
2021-03-01 13:58:06 +11:00
parent b34fd6d4f2
commit 35e8f56b49
3 changed files with 6 additions and 9 deletions

View File

@@ -6,8 +6,7 @@ AM_CPPFLAGS += \
$(LIBNS_CFLAGS) \
$(LIBISCCFG_CFLAGS)
hooks_LTLIBRARIES = test-async.la
hooksdir = $(abs_builddir)
check_LTLIBRARIES = test-async.la
test_async_la_SOURCES = test-async.c
test_async_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
test_async_la_LDFLAGS = -avoid-version -module -shared -export-dynamic -rpath $(abs_builddir)