Browse Source

xmlops: fix cross compilation

Ovidiu Sas 12 years ago
parent
commit
a419c74d06
1 changed files with 3 additions and 1 deletions
  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