diff options
author | Tollef Fog Heen <tfheen@err.no> | 2009-03-30 21:17:43 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2009-03-30 21:17:43 +0200 |
commit | e170895bc6241e933c6c6e85dc800fef5ed44615 (patch) | |
tree | e04a759e703080a3d35766d6aaf797fa7b98d921 | |
parent | daa68e4e1b3c585052a2c6a720b99746678be777 (diff) | |
download | pkg-config-e170895bc6241e933c6c6e85dc800fef5ed44615.tar.gz |
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.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | pkg.c | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -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. @@ -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); |