From: Tollef Fog Heen Date: Mon, 28 Apr 2008 19:19:02 +0000 (+0200) Subject: 2008-04-28 Tollef Fog Heen X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5d6a8f8a773f3516b35df0acbac53bd293f154f;p=pkg-config 2008-04-28 Tollef Fog Heen * parse.c (_do_parse_libs): Special-case "-lib:" in the Libs field; it's not an -l. Yes, this breaks if your library is called libib:$something, in which case you lose. Gnome #142952 --- diff --git a/ChangeLog b/ChangeLog index 10295b2..2ee20ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-04-28 Tollef Fog Heen + * parse.c (_do_parse_libs): Special-case "-lib:" in the Libs + field; it's not an -l. Yes, this breaks if your library is called + libib:$something, in which case you lose. Gnome #142952 + * main.c (main): Make sure log is initialized to prevent segfaults. diff --git a/parse.c b/parse.c index ca0de2a..fc18c34 100644 --- a/parse.c +++ b/parse.c @@ -656,7 +656,10 @@ static void _do_parse_libs (Package *pkg, int argc, char **argv) p = start; if (p[0] == '-' && - p[1] == 'l') + p[1] == 'l' && + /* -lib: is used by the C# compiler for libs; it's not an -l + flag. */ + (strncmp(p, "-lib:", 5) != 0)) { char *libname;