mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-08 17:08:24 +02:00
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.
This commit is contained in:
parent
daa68e4e1b
commit
e170895bc6
2 changed files with 7 additions and 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.
|
||||
|
|
|
|||
4
pkg.c
4
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue