From 50bda85e88fa10be32733dd0334aea93519bc915 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sun, 30 Jan 2011 00:33:00 +0100 Subject: pkg-config: add --with-sysroot option for compiled in default sysroot setting Similar to the --with-pc-path option. It works just like the existing PKG_CONFIG_SYSROOT_DIR environment variable, but compiled in. The environment variable overrides this default setting if set. This way we don't need to pass PKG_CONFIG_SYSROOT_DIR in the environment when building for the target, and it is easier to reuse pkg-config outside BR (E.G. for the SDK) without having to setup special environment variables. Signed-off-by: Peter Korsgaard --- package/pkg-config/pkg-config.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/pkg-config/pkg-config.mk') diff --git a/package/pkg-config/pkg-config.mk b/package/pkg-config/pkg-config.mk index 413853d97..bb52db87d 100644 --- a/package/pkg-config/pkg-config.mk +++ b/package/pkg-config/pkg-config.mk @@ -13,8 +13,11 @@ PKG_CONFIG_CONF_OPT = --with-installed-glib HOST_PKG_CONFIG_CONF_OPT = \ --with-pc-path="$(STAGING_DIR)/usr/lib/pkgconfig" \ + --with-sysroot="$(STAGING_DIR)" \ --disable-static +HOST_PKG_CONFIG_AUTORECONF = YES + $(eval $(call AUTOTARGETS,package,pkg-config)) $(eval $(call AUTOTARGETS,package,pkg-config,host)) -- cgit v1.2.3