Browse Source

carrierroute: fix cross-compilation

Ovidiu Sas 12 years ago
parent
commit
f9c0980c4f
1 changed files with 6 additions and 4 deletions
  1. 6 4
      modules/carrierroute/Makefile

+ 6 - 4
modules/carrierroute/Makefile

@@ -9,15 +9,17 @@ include ../../Makefile.defs
 auto_gen=
 NAME=carrierroute.so
 
+ifeq ($(CROSS_COMPILE),)
 BUILDER = $(shell which confuse-config)
+endif
 
 ifeq ($(BUILDER),)
+	ifeq ($(CROSS_COMPILE),)
 	BUILDER = $(shell which pkg-config)
+	endif
 	ifeq ($(BUILDER),)
-		CONFUSEDEFS=-I$(LOCALBASE)/include -I/usr/local/include -I/opt/include \
-			-I/usr/sfw/include
-		CONFUSELIBS=-L$(LOCALBASE)/lib -L/usr/local/lib -L/usr/sfw/lib \
-			-L/opt/lib -lconfuse
+		CONFUSEDEFS=-I$(LOCALBASE)/include
+		CONFUSELIBS=-L$(LOCALBASE)/lib -lconfuse
 	else
 		CONFUSEDEFS = $(shell pkg-config --cflags libconfuse)
 		CONFUSELIBS = $(shell pkg-config --libs libconfuse)