@@ -247,6 +247,8 @@ export PERL=$(shell which perl)
# finds this perl module by exporting the proper value for PERL5LIB.
export PERL5LIB=$(HOST_DIR)/usr/lib/perl
+PKG_CONFIG_HOST_BINARY = $(HOST_DIR)/usr/bin/pkg-config
+
TARGET_CONFIGURE_OPTS = \
PATH=$(BR_PATH) \
AR="$(TARGET_AR)" \
@@ -10,8 +10,6 @@ PKGCONF_SOURCE = pkgconf-$(PKGCONF_VERSION).tar.bz2
PKGCONF_LICENSE = pkgconf license
PKGCONF_LICENSE_FILES = COPYING
-PKG_CONFIG_HOST_BINARY = $(HOST_DIR)/usr/bin/pkg-config
-
define PKGCONF_LINK_PKGCONFIG
ln -sf pkgconf $(TARGET_DIR)/usr/bin/pkg-config
endef
This is in order to support the per-package staging directory. Because the PKG_CONFIG_HOST_BINARY will be used inside the pkg-generic.mk, move the definition in the Makefile.in so it will be loaded before the pkg-generic.mk. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> --- package/Makefile.in | 2 ++ package/pkgconf/pkgconf.mk | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)