Module: sip-router
Branch: 4.0
Commit: 55f7def6b4ed889a27a19164faa0dd7f854fa983
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=55f7def…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Thu Apr 25 14:50:41 2013 -0400
snmpstats: fix cross-compilation
(cherry picked from commit 5e96920289cbf448ac684d8cb1333d75f65a729a)
---
modules/snmpstats/Makefile | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/snmpstats/Makefile b/modules/snmpstats/Makefile
index 2d4af2a..2fd7f6c 100644
--- a/modules/snmpstats/Makefile
+++ b/modules/snmpstats/Makefile
@@ -3,8 +3,13 @@
# WARNING: do not run this directly, it should be run by the master Makefile
include ../../Makefile.defs
+auto_gen=
+NAME=snmpstats.so
+ifeq ($(CROSS_COMPILE),)
BUILDER = $(shell which net-snmp-config)
+endif
+
ifeq ($(BUILDER),)
DEFS +=-I$(LOCALBASE)/include
BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs -lnetsnmpagent \
@@ -29,12 +34,8 @@ BUILDAGENTLIBS += -Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi
-lrpmdb -lrpm
endif
-CFLAGS+=
-auto_gen=
-NAME=snmpstats.so
LIBS=$(BUILDAGENTLIBS)
-
DEFS+=-DKAMAILIO_MOD_INTERFACE
SERLIBPATH=../../lib