]> err.no Git - pkg-config/commitdiff
2009-03-30 Tollef Fog Heen <tfheen@err.no>
authorTollef Fog Heen <tfheen@err.no>
Mon, 30 Mar 2009 19:17:43 +0000 (21:17 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 30 Mar 2009 19:17:43 +0000 (21:17 +0200)
* pkg.c (add_virtual_pkgconfig_package): Add pc_path as a variable
which you can use to get at the compiled-in PKG_CONFIG_PC_PATH.

ChangeLog
pkg.c

index 84a3f432cdb1d3a6616a35228c7193d35b451554..40869bfb0d0bb5cea66332164616f36144c5957e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-03-30  Tollef Fog Heen  <tfheen@err.no>
 
+       * pkg.c (add_virtual_pkgconfig_package): Add pc_path as a variable
+       which you can use to get at the compiled-in PKG_CONFIG_PC_PATH.
+
        * pkg.h: Fix up path to glib.h
 
        * pkg.c (add_virtual_pkgconfig_package): Fix URL to pkg-config.
diff --git a/pkg.c b/pkg.c
index 73061ca66e837dc679f509c8f43ace5e959a8353..320ca644413196774a307487bc8f85e663f9ce0f 100644 (file)
--- a/pkg.c
+++ b/pkg.c
@@ -234,6 +234,10 @@ add_virtual_pkgconfig_package (void)
                               "compile/link flags for libraries");
   pkg->url = g_strdup ("http://pkg-config.freedesktop.org/");
 
+  if (pkg->vars == NULL)
+    pkg->vars = g_hash_table_new (g_str_hash, g_str_equal);
+  g_hash_table_insert (pkg->vars, "pc_path", PKG_CONFIG_PC_PATH);
+
   debug_spew ("Adding virtual 'pkg-config' package to list of known packages\n");
   g_hash_table_insert (packages, pkg->key, pkg);