]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Test dynamic libraries should not be installed
authorMark Andrews <marka@isc.org>
Mon, 1 Mar 2021 02:58:06 +0000 (13:58 +1100)
committerMark Andrews <marka@isc.org>
Thu, 1 Apr 2021 08:11:54 +0000 (19:11 +1100)
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.

bin/tests/system/dlzexternal/driver/Makefile.am
bin/tests/system/dyndb/driver/Makefile.am
bin/tests/system/hooks/driver/Makefile.am

index 8d9bc0131eba29d8aa1ee127a4dc6d5cf297ee26..a8211d1fb1dc963ee67042ef9bd5bbb8104f0a02 100644 (file)
@@ -4,11 +4,10 @@ AM_CPPFLAGS +=                        \
        $(LIBISC_CFLAGS)        \
        $(LIBDNS_CFLAGS)
 
-dlzexternal_LTLIBRARIES = dlzexternal.la
-dlzexternaldir = $(abs_builddir)
+check_LTLIBRARIES = dlzexternal.la
 
 dlzexternal_la_SOURCES =       \
        driver.c                \
        driver.h
 
-dlzexternal_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+dlzexternal_la_LDFLAGS = -avoid-version -module -shared -export-dynamic -rpath $(abs_builddir)
index c90510c80eec189c76df6e3810e9600e9398efaf..f8ceded031cf7deff8b4996cd521f842a8859c70 100644 (file)
@@ -4,8 +4,7 @@ AM_CPPFLAGS +=                  \
        $(LIBISC_CFLAGS)        \
        $(LIBDNS_CFLAGS)
 
-dyndb_LTLIBRARIES = sample.la
-dyndbdir = $(abs_builddir)
+check_LTLIBRARIES = sample.la
 
 sample_la_SOURCES =    \
        db.c            \
@@ -23,4 +22,4 @@ sample_la_SOURCES =   \
        util.h          \
        zone.h
 
-sample_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+sample_la_LDFLAGS = -avoid-version -module -shared -export-dynamic -rpath $(abs_builddir)
index 08187bf789f13e2a593ed73849e83789d52bcd56..ffa074a27ce5ee95e46de5262098ff59fde95675 100644 (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)