From d5d6a8f8a773f3516b35df0acbac53bd293f154f Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 28 Apr 2008 21:19:02 +0200 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ parse.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.39.5