2008-04-28 Tollef Fog Heen <tfheen@err.no>

* 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
This commit is contained in:
Tollef Fog Heen 2008-04-28 21:19:02 +02:00
parent 5998a08da4
commit d5d6a8f8a7
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2008-04-28 Tollef Fog Heen <tfheen@err.no>
* 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.

View file

@ -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;