summarylogtreecommitdiffstats
path: root/platform-pkg-config.in
diff options
context:
space:
mode:
Diffstat (limited to 'platform-pkg-config.in')
-rw-r--r--platform-pkg-config.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform-pkg-config.in b/platform-pkg-config.in
new file mode 100644
index 000000000000..3f6b9a78a19d
--- /dev/null
+++ b/platform-pkg-config.in
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Simple wrapper to tell pkgconf to behave as a platform-specific version of pkg-config
+# Platform: @TARGET_PLATFORM@
+
+: ${PKG_CONFIG_LIBDIR=@PKGCONF_LIBDIRS@}
+: ${PKG_CONFIG_SYSTEM_LIBRARY_PATH=@PKGCONF_SYSLIBDIR@}
+: ${PKG_CONFIG_SYSTEM_INCLUDE_PATH=@PKGCONF_SYSINCDIR@}
+export PKG_CONFIG_LIBDIR PKG_CONFIG_SYSTEM_LIBRARY_PATH PKG_CONFIG_SYSTEM_INCLUDE_PATH
+
+exec pkgconf "$@"