From 9e08949e87521d5eecc75e66b564ace61374b909 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Tue, 16 Jul 2019 12:06:20 +0200 Subject: [PATCH] tools: Record NSS dependency on symbols file If a symbol file for either of NSS modules is changed then subsequent 'make' doesn't regenerate the library, because there is no implicit dependency between the library and symbols file. Put an explicit dependency into the Makefile then. Unfortunately, setting _DEPENDENCIES makes us lose automake's generated dependencies (see src/Makefile.am:592 for details). But fortunately, the only dependency we had was _LIBADD variable. Signed-off-by: Michal Privoznik Reviewed-by: Erik Skultety --- tools/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/Makefile.am b/tools/Makefile.am index 29fdbfe846..ece70384e6 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -535,6 +535,10 @@ nss_libnss_libvirt_la_LDFLAGS = \ nss_libnss_libvirt_la_LIBADD = \ nss/libnss_libvirt_impl.la +nss_libnss_libvirt_la_DEPENDENCIES = \ + $(nss_libnss_libvirt_la_LIBADD) \ + $(LIBVIRT_NSS_SYMBOL_FILE) + noinst_LTLIBRARIES += nss/libnss_libvirt_guest_impl.la nss_libnss_libvirt_guest_impl_la_SOURCES = \ $(LIBVIRT_NSS_SOURCES) \ @@ -567,6 +571,10 @@ nss_libnss_libvirt_guest_la_LDFLAGS = \ nss_libnss_libvirt_guest_la_LIBADD = \ nss/libnss_libvirt_guest_impl.la +nss_libnss_libvirt_guest_la_DEPENDENCIES = \ + $(nss_libnss_libvirt_guest_la_LIBADD) \ + $(LIBVIRT_GUEST_NSS_SYMBOL_FILE) + lib_LTLIBRARIES = \ nss/libnss_libvirt.la \ nss/libnss_libvirt_guest.la -- 2.47.2