X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2a6a038b870d62139597dec180ac58f998211732..fb8b4548a0193022e19c6c920d925fd9c8d73343:/include/package.mk?ds=sidebyside diff --git a/include/package.mk b/include/package.mk index cf8771a5e..1b69cf25d 100644 --- a/include/package.mk +++ b/include/package.mk @@ -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 @@ -295,9 +296,9 @@ define Build/Configure/Default CXXFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ - PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ + PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \ $(2) \ - ./configure \ + $(PKG_CONFIG_PATH)/configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \