summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-04-04 21:25:19 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-04-04 21:25:19 +0200
commita263892613216ae4c58fa769c4aada70dcdd9e2c (patch)
treebda81998adc99107412b2e2b815a62adaa32cb5c /ospfd
parentMerge branch 'master' (diff)
downloadfrr-a263892613216ae4c58fa769c4aada70dcdd9e2c.tar.xz
frr-a263892613216ae4c58fa769c4aada70dcdd9e2c.zip
build: fix CFLAGS for snmp modules
The SNMP modules include <net-snmp/net-snmp-config.h>, 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 <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfd/Makefile.am b/ospfd/Makefile.am
index e9d0ed219..c6a5ec91d 100644
--- a/ospfd/Makefile.am
+++ b/ospfd/Makefile.am
@@ -38,6 +38,7 @@ if SNMP
module_LTLIBRARIES += ospfd_snmp.la
endif
ospfd_snmp_la_SOURCES = ospf_snmp.c
+ospfd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
ospfd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
ospfd_snmp_la_LIBADD = ../lib/libfrrsnmp.la