Browse Source

snmpstats: fix cross-compilation

Ovidiu Sas 12 years ago
parent
commit
5e96920289
1 changed files with 5 additions and 4 deletions
  1. 5 4
      modules/snmpstats/Makefile

+ 5 - 4
modules/snmpstats/Makefile

@@ -3,8 +3,13 @@
 # WARNING: do not run this directly, it should be run by the master Makefile
 # WARNING: do not run this directly, it should be run by the master Makefile
 
 
 include ../../Makefile.defs
 include ../../Makefile.defs
+auto_gen=
+NAME=snmpstats.so
 
 
+ifeq ($(CROSS_COMPILE),)
 BUILDER = $(shell which net-snmp-config)
 BUILDER = $(shell which net-snmp-config)
+endif
+
 ifeq ($(BUILDER),)
 ifeq ($(BUILDER),)
 	DEFS +=-I$(LOCALBASE)/include
 	DEFS +=-I$(LOCALBASE)/include
 	BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs -lnetsnmpagent \
 	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
                 -lrpmdb -lrpm
 endif
 endif
 
 
-CFLAGS+=
-auto_gen=
-NAME=snmpstats.so
 LIBS=$(BUILDAGENTLIBS)
 LIBS=$(BUILDAGENTLIBS)
 
 
-
 DEFS+=-DKAMAILIO_MOD_INTERFACE
 DEFS+=-DKAMAILIO_MOD_INTERFACE
 
 
 SERLIBPATH=../../lib
 SERLIBPATH=../../lib