From 0a7b5b6e10cb230444efea51ea50d73d558989cd Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Wed, 22 May 2019 19:14:17 +0200 Subject: [PATCH] examples: Move $(STATIC_BINARIES) to $(AM_LDFLAGS) $(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 Acked-by: Michal Privoznik --- 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.11.4.GIT