Author: hp
Date: 2003-01-15 04:02:47 GMT
2003-01-15 Havoc Pennington <hp@pobox.com>
* pkg.c (package_init): honor a PKG_CONFIG_LIBDIR to move default
search dir, useful in cross-compilation for example, bug
#103545 fix from David Schleef
+2003-01-15 Havoc Pennington <hp@pobox.com>
+
+ * pkg.c (package_init): honor a PKG_CONFIG_LIBDIR to move default
+ search dir, useful in cross-compilation for example, bug
+ #103545 fix from David Schleef
+
2003-01-01 Zack Rusin <zack@kde.org>
* main.c (main): added --libs-only-other and --cflags-only-other
.I "PKG_CONFIG_ALLOW_SYSTEM_LIBS"
Don't strip -L/usr/lib out of libs
+.TP
+.I "PKG_CONFIG_LIBDIR"
+Replaces the default \fIpkg-config\fP search directory.
+
.SH WINDOWS SPECIALITIES
If a .pc file is found in a directory that matches the usual
conventions (i.e., ends with \\lib\\pkgconfig), the prefix for that
package_init ()
{
static gboolean initted = FALSE;
+ const char *pkglibdir;
+
+ pkglibdir = g_getenv ("PKG_CONFIG_LIBDIR");
+ if (pkglibdir == NULL)
+ pkglibdir = PKGLIBDIR;
if (!initted)
{
path_positions = g_hash_table_new (g_str_hash, g_str_equal);
g_slist_foreach (search_dirs, (GFunc)scan_dir, NULL);
- scan_dir (PKGLIBDIR);
+ scan_dir (pkglibdir);
}
}