$(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 <[email protected]>
---
 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

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to