allow package directories to override the path to configure
authorFelix Fietkau <nbd@openwrt.org>
Fri, 8 Dec 2006 14:36:56 +0000 (14:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 8 Dec 2006 14:36:56 +0000 (14:36 +0000)
SVN-Revision: 5722

include/package.mk

index cf8771a5ef89b6f5152a6e68d3ae4cf6264de777..1edac0e0acd1f8813cbe8d79c371d9ff0c944f2f 100644 (file)
@@ -14,6 +14,7 @@ include $(INCLUDE_DIR)/prereq.mk
 include $(INCLUDE_DIR)/host.mk
 include $(INCLUDE_DIR)/unpack.mk
 
+PKG_CONFIG_PATH:=.
 export CONFIG_SITE:=$(INCLUDE_DIR)/site/$(REAL_GNU_TARGET_NAME)
 
 define Build/DefaultTargets
@@ -297,7 +298,7 @@ define Build/Configure/Default
                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
                PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
                $(2) \
-               ./configure \
+               $(PKG_CONFIG_PATH)/configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \