From fdf4a9c2518f4200d9981e87fd6322936cc4a078 Mon Sep 17 00:00:00 2001
From: Steffen Vogel <post@steffenvogel.de>
Date: Mon, 26 Mar 2018 12:52:45 +0200
Subject: [PATCH] coverage: add missing linker flags to fix compilation

---
 tools/Makefile.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Makefile.inc b/tools/Makefile.inc
index 11f8c6a76..9ec31ab80 100644
--- a/tools/Makefile.inc
+++ b/tools/Makefile.inc
@@ -27,7 +27,7 @@ endif
 endif
 
 TOOLS_CFLAGS = $(CFLAGS)
-TOOLS_LDLIBS = -lconfig -ljansson -lvillas
+TOOLS_LDLIBS = $(LDLIBS) -lconfig -ljansson -lvillas
 TOOLS_LDFLAGS = $(LDFLAGS) -Wl,-rpath,'$$ORIGIN'
 
 ifeq ($(shell $(PKGCONFIG) libzmq; echo $$?),0)