From 773b6d3896fc34098c3145e2c504b53f0df6c033 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Tue, 15 Mar 2011 13:50:56 +0100 Subject: net-snmp: fix debugging options Debugging options are a bit unusual and have three states. Now we can have the default case, too. Also, update the comment about the build-fix for 5.6.1. Signed-off-by: Wolfram Sang --- rules/net-snmp.in | 26 +++++++++++++++++++++++--- rules/net-snmp.make | 6 ++++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/rules/net-snmp.in b/rules/net-snmp.in index 9b33f92d6..964cec7ed 100644 --- a/rules/net-snmp.in +++ b/rules/net-snmp.in @@ -6,7 +6,7 @@ menuconfig NET_SNMP select GCCLIBS_GCC_S if NET_SNMP_AGENT select LIBC_DL if NET_SNMP_AGENT || NET_SNMP_APPLICATIONS select NET_SNMP_MD5 -# ^ build fix for 5.6.1 +# ^ build fix for 5.6.1 (see http://sourceforge.net/tracker/index.php?func=detail&aid=3184697&group_id=12694&atid=112694) if NET_SNMP @@ -59,9 +59,29 @@ config NET_SNMP_LOCAL_SMUX bool prompt "restrict SMUX connections to localhost (by default)" -config NET_SNMP_DEBUGGING - bool +choice prompt "debugging" + default NET_SNMP_DEFAULT_DEBUGGING + +config NET_SNMP_DEFAULT_DEBUGGING + bool + prompt "default" + help + Use default debugging, selectable via -D on the command-line. + +config NET_SNMP_FORCE_DEBUGGING + bool + prompt "enforce" + help + Always print all debugging even when not specified on command-line. + +config NET_SNMP_STRIP_DEBUGGING + bool + prompt "strip" + help + Strip debugging code entirely. + +endchoice config NET_SNMP_DEVELOPER bool diff --git a/rules/net-snmp.make b/rules/net-snmp.make index b1e150c3f..e4716d3a9 100644 --- a/rules/net-snmp.make +++ b/rules/net-snmp.make @@ -137,9 +137,11 @@ else NET_SNMP_AUTOCONF += --disable-local-smux endif -ifdef PTXCONF_NET_SNMP_DEBUGGING +ifdef PTXCONF_NET_SNMP_FORCE_DEBUGGING NET_SNMP_AUTOCONF += --enable-debugging -else +endif + +ifdef PTXCONF_NET_SNMP_STRIP_DEBUGGING NET_SNMP_AUTOCONF += --disable-debugging endif -- cgit v1.2.3