summaryrefslogtreecommitdiffstats
path: root/ripd
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 /ripd
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 'ripd')
-rw-r--r--ripd/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/ripd/Makefile.am b/ripd/Makefile.am
index 827869121..9c034f0c3 100644
--- a/ripd/Makefile.am
+++ b/ripd/Makefile.am
@@ -28,6 +28,7 @@ if SNMP
module_LTLIBRARIES += ripd_snmp.la
endif
ripd_snmp_la_SOURCES = rip_snmp.c
+ripd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
ripd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
ripd_snmp_la_LIBADD = ../lib/libfrrsnmp.la