--- pkg-config-0.19/parse.c.orig 2005-09-10 14:40:33 +0400 +++ pkg-config-0.19/parse.c 2005-09-10 14:52:30 +0400 @@ -749,10 +749,13 @@ if (result < 0) { - verbose_error ("Couldn't parse Libs field into an argument vector: %s\n", - poptStrerror (result)); - - exit (1); + if (result != POPT_ERROR_NOARG) + { + verbose_error ("Couldn't parse Libs field into an argument vector: %s\n", + poptStrerror (result)); + exit (1); + } + argc = 0; } _do_parse_libs(pkg, argc, argv); @@ -795,10 +798,13 @@ if (result < 0) { - verbose_error ("Couldn't parse Libs.private field into an argument vector: %s\n", - poptStrerror (result)); - - exit (1); + if (result != POPT_ERROR_NOARG) + { + verbose_error ("Couldn't parse Libs.private field into an argument vector: %s\n", + poptStrerror (result)); + exit (1); + } + argc = 0; } _do_parse_libs(pkg, argc, argv); @@ -832,11 +838,16 @@ result = poptParseArgvString (trimmed, &argc, &argv); if (result < 0) - { - verbose_error ("Couldn't parse Cflags field into an argument vector: %s\n", + { + if (result != POPT_ERROR_NOARG) + { + verbose_error ("Couldn't parse Cflags field into an argument vector: %s\n", poptStrerror (result)); - exit (1); + exit (1); + } + + argc = 0; } i = 0;