From 1a60bb776cd9cb37cb50d4b9c437d65de5c350d5 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 17 Aug 2015 14:07:34 +0200 Subject: [PATCH] build: fix test building with libnl dependency --- tests/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Makefile.am b/tests/Makefile.am index 6784df07..243dd49c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -8,6 +8,10 @@ TESTS = check_marshal check_pattern check_lldp check_cdp check_sonmp check_edp c AM_CFLAGS += @CHECK_CFLAGS@ LDADD = $(top_builddir)/src/daemon/liblldpd.la @CHECK_LIBS@ @LIBEVENT_LDFLAGS@ +if HOST_OS_LINUX +LDADD += @LIBNL_LDFLAGS@ +endif + check_marshal_SOURCES = check_marshal.c \ $(top_srcdir)/src/marshal.h \ check-compat.h -- 2.39.5