浏览代码

xmlops: fix cross compilation

Ovidiu Sas 12 年之前
父节点
当前提交
a419c74d06
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      modules/xmlops/Makefile

+ 3 - 1
modules/xmlops/Makefile

@@ -9,7 +9,9 @@ auto_gen=
 NAME=xmlops.so
 LIBS=
 
+ifeq ($(CROSS_COMPILE),)
 XML2CFG=$(shell which xml2-config)
+endif
 
 ifneq ($(XML2CFG),)
 
@@ -18,7 +20,7 @@ ifneq ($(XML2CFG),)
 
 else
 
-	DEFS+=-I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2 \
+	DEFS+=-I$(LOCALBASE)/include/libxml2 \
 		-I$(LOCALBASE)/include
 	LIBS+=-L$(LOCALBASE)/lib -lxml2