packages/net/mini_snmpd_ipv6/patches/101-opt_flags.patch
acoul 0318938558 fix mini_snmpd on ipv4. Create a separate mini_snmpd_ipv6 package (closes #6578 & #7094)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20889 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-15 21:11:06 +00:00

14 lines
442 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -30,8 +30,9 @@ HEADERS = mini_snmpd.h
SOURCES = mini_snmpd.c protocol.c mib.c globals.c utils.c linux.c freebsd.c
VERSION = 1.0
VENDOR = .1.3.6.1.4.1
+OFLAGS = -O2 -DDEBUG
CFLAGS = -Wall -Werror -DVERSION="\"$(VERSION)\"" -DVENDOR="\"$(VENDOR)\"" \
- -O2 -DDEBUG -D__LINUX__ -D__DEMO__
+ $(OFLAGS) -D__LINUX__ -D__DEMO__
TARGET = mini_snmpd
MAN = mini_snmpd.8
DOC = CHANGELOG COPYING README TODO