--- pkg-config-0.21/parse.c.privreq 2006-08-16 13:45:45.000000000 -0500
+++ pkg-config-0.21/parse.c 2007-01-24 08:26:13.000000000 -0600
@@ -946,7 +946,12 @@
else if (strcmp (tag, "Version") == 0)
parse_version (pkg, p, path);
else if (strcmp (tag, "Requires.private") == 0)
- parse_requires_private (pkg, p, path);
+ {
+ if (ignore_private_libs == FALSE)
+ parse_requires_private (pkg, p, path);
+ else
+ goto cleanup;
+ }
else if (strcmp (tag, "Requires") == 0)
{
if (ignore_requires == FALSE)
@@ -954,9 +959,13 @@
else
goto cleanup;
}
- else if ((strcmp (tag, "Libs.private") == 0) &&
- ignore_private_libs == FALSE)
- parse_libs_private (pkg, p, path);
+ else if (strcmp (tag, "Libs.private") == 0)
+ {
+ if (ignore_private_libs == FALSE)
+ parse_libs_private (pkg, p, path);
+ else
+ goto cleanup;
+ }
else if (strcmp (tag, "Libs") == 0)
parse_libs (pkg, p, path);
else if (strcmp (tag, "Cflags") == 0 ||