packages/net/mini_snmpd/patches/101-opt_flags.patch
nico 697a83a4c1 [packages] add mini_snmpd, an SNMP server for embedded devices
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14314 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-31 16:25:41 +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