summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2008-04-28 21:19:02 +0200
committerTollef Fog Heen <tfheen@err.no>2008-04-28 21:19:02 +0200
commitd5d6a8f8a773f3516b35df0acbac53bd293f154f (patch)
treecdb3df0b8a32344f782331f3278bf274d5778e15 /parse.c
parent5998a08da463386dcfb19db3b8509794c661ddfc (diff)
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
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c5
1 files changed, 4 insertions, 1 deletions
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;