Op dinsdag 27-01-2009 om 19:37 uur [tijdzone +0100], schreef Erik van
Pienbroek:
> I think the best way to solve this problem is by asking the pkg-config
> maintainer if an extra environment variable can be added (something like
> PKG_CONFIG_IGNORE_NATIVE=1) which ignores any files in
> %{_libdir}/pkgconfig
I just created a patch which does the above. Feel free to submit it to
the pkg-config maintainer.
Regards,
Erik van Pienbroek
--- pkg-config-0.23/main.c.orig 2009-01-27 19:46:16.185717396 +0100
+++ pkg-config-0.23/main.c 2009-01-27 19:48:53.313714182 +0100
@@ -199,6 +199,7 @@
GString *str;
GSList *packages = NULL;
char *search_path;
+ char *ignore_native;
char *pcbuilddir;
const char *pkglibdir;
char **search_dirs;
@@ -293,15 +294,19 @@
{
add_search_dirs(search_path, G_SEARCHPATH_SEPARATOR_S);
}
- if (getenv("PKG_CONFIG_LIBDIR") != NULL)
- {
- add_search_dirs(getenv("PKG_CONFIG_LIBDIR"), G_SEARCHPATH_SEPARATOR_S);
- }
- else
+
+ ignore_native = getenv ("PKG_CONFIG_IGNORE_NATIVE");
+ if (!(ignore_native && atoi(ignore_native) == 1))
{
- add_search_dirs(PKG_CONFIG_PC_PATH, G_SEARCHPATH_SEPARATOR_S);
+ if (getenv("PKG_CONFIG_LIBDIR") != NULL)
+ {
+ add_search_dirs(getenv("PKG_CONFIG_LIBDIR"), G_SEARCHPATH_SEPARATOR_S);
+ }
+ else
+ {
+ add_search_dirs(PKG_CONFIG_PC_PATH, G_SEARCHPATH_SEPARATOR_S);
+ }
}
-
#ifdef G_OS_WIN32
{
/* Add search directories from the Registry */
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw