From a263892613216ae4c58fa769c4aada70dcdd9e2c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 4 Apr 2017 21:25:19 +0200 Subject: build: fix CFLAGS for snmp modules The SNMP modules include , which won't be found in off-searchpath directories without SNMP_CFLAGS. Unfortunately in my tests the files were on the search path even without the flags. (SNMP_LIBS is not needed because only libfrrsnmp calls into net-snmp functions.) Signed-off-by: David Lamparter --- zebra/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'zebra') diff --git a/zebra/Makefile.am b/zebra/Makefile.am index af7a513d2..3e0de3b46 100644 --- a/zebra/Makefile.am +++ b/zebra/Makefile.am @@ -61,6 +61,7 @@ if SNMP module_LTLIBRARIES += zebra_snmp.la endif zebra_snmp_la_SOURCES = zebra_snmp.c +zebra_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS) zebra_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic zebra_snmp_la_LIBADD = ../lib/libfrrsnmp.la -- cgit v1.2.3