[libvirt] [PATCH 06/16] examples: Move $(STATIC_BINARIES) to $(AM_LDFLAGS)

Andrea Bolognani abologna at redhat.com
Wed May 22 17:52:57 UTC 2019


$(LDADD) is for object files that should be added during
linking, not for options that should be passed to the
linker: that's what $(AM_LDFLAGS) is for.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 examples/Makefile.am | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/examples/Makefile.am b/examples/Makefile.am
index d83104a130..38dcb399c0 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -32,8 +32,11 @@ AM_CPPFLAGS = \
 	$(WARN_CFLAGS) \
 	$(NULL)
 
-LDADD = \
+AM_LDFLAGS = \
 	$(STATIC_BINARIES) \
+	$(NULL)
+
+LDADD = \
 	$(top_builddir)/src/libvirt.la \
 	$(top_builddir)/src/libvirt-admin.la \
 	$(NULL)
-- 
2.21.0




More information about the libvir-list mailing list