summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/pkgconfig/pkgconfig
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-01-08 15:23:47 +0000
committerSaul Wold <sgw@linux.intel.com>2013-01-09 16:40:36 -0800
commitb15e22beed948f79b6ae953df7b889f3e70588b9 (patch)
tree9ea2977b669f7d3f4145adcaa9d70bae7ea79060 /meta/recipes-devtools/pkgconfig/pkgconfig
parent5de138939c42b0a6d80732130b2617fd60a7d545 (diff)
downloadopenembedded-core-b15e22beed948f79b6ae953df7b889f3e70588b9.tar.gz
pkgconfig: add -native script that uses the native sysroot instead of target
pkg-config-native is useful when building a package for the target that needs to compile a build-time tool, to avoid having to hard-code many paths. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/pkgconfig/pkgconfig')
-rw-r--r--meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in b/meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in
new file mode 100644
index 0000000000..5e44bb435c
--- /dev/null
+++ b/meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+PKG_CONFIG_PATH="@PATH_NATIVE@"
+PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
+unset PKG_CONFIG_SYSROOT_DIR
+
+pkg-config "$@"