summaryrefslogtreecommitdiffstats
path: root/bgpd
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 /bgpd
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 'bgpd')
-rw-r--r--bgpd/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/Makefile.am b/bgpd/Makefile.am
index af6c8faf0..b6ed9a4d6 100644
--- a/bgpd/Makefile.am
+++ b/bgpd/Makefile.am
@@ -107,6 +107,7 @@ module_LTLIBRARIES += bgpd_snmp.la
endif
bgpd_snmp_la_SOURCES = bgp_snmp.c
+bgpd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
bgpd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
bgpd_snmp_la_LIBADD = ../lib/libfrrsnmp.la