summaryrefslogtreecommitdiff
path: root/gtkdoc-depscan.in
diff options
context:
space:
mode:
authorMarvin Schmidt <marv@exherbo.org>2016-06-05 10:13:56 +0200
committerStefan Sauer <ensonic@users.sf.net>2016-06-05 20:16:51 +0200
commit64d940b45474c4e98c4ed9bb035248a40145527d (patch)
tree3fee112bc6473ccb3d18a32eeaef78bbe0548d46 /gtkdoc-depscan.in
parent08e723acccdc0a284c2ac386a8b5c6a0948948eb (diff)
downloadgtk-doc-64d940b45474c4e98c4ed9bb035248a40145527d.tar.gz
depscan/fixxref/rebase: Don't hardcode pkg-config binary
`pkg-config` is not necessarily the correct pkg-config binary, especially in cross-compilation scenarios. Use the pkg-config binary that PKG_PROG_PKG_CONFIG (which looks for host-prefixed pkg-config) found and defined in PKG_CONFIG https://bugzilla.gnome.org/show_bug.cgi?id=767271
Diffstat (limited to 'gtkdoc-depscan.in')
-rw-r--r--gtkdoc-depscan.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtkdoc-depscan.in b/gtkdoc-depscan.in
index 83af01b..accc7d0 100644
--- a/gtkdoc-depscan.in
+++ b/gtkdoc-depscan.in
@@ -264,7 +264,7 @@ def merge_gnome_path(options):
path = path and path.split(':') or []
prefix = popen(
- 'pkg-config --variable=prefix glib-2.0'
+ '@PKG_CONFIG@ --variable=prefix glib-2.0'
).readline().rstrip()
path.insert(0, prefix)