From: Vincent Bernat Date: Mon, 17 Aug 2015 12:07:34 +0000 (+0200) Subject: build: fix test building with libnl dependency X-Git-Tag: 0.8.0~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a60bb776cd9cb37cb50d4b9c437d65de5c350d5;p=thirdparty%2Flldpd.git build: fix test building with libnl dependency --- 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