Explorar o código

snmpstats: fix cross-compilation

Ovidiu Sas %!s(int64=12) %!d(string=hai) anos
pai
achega
5e96920289
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  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
 
 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