浏览代码

snmpstats: fix cross-compilation

Ovidiu Sas 12 年之前
父节点
当前提交
5e96920289
共有 1 个文件被更改,包括 5 次插入4 次删除
  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