]> err.no Git - pkg-config/commitdiff
2008-04-28 Tollef Fog Heen <tfheen@err.no>
authorTollef Fog Heen <tfheen@err.no>
Mon, 28 Apr 2008 19:19:02 +0000 (21:19 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 28 Apr 2008 19:19:02 +0000 (21:19 +0200)
* 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
parse.c

index 10295b2c3fa7168974504c3aa895f2a718cdfbc2..2ee20ce8971e49c5a8c8cd476dc12c954fca8b68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
diff --git a/parse.c b/parse.c
index ca0de2aaf67c272b976845f257970e6f9f37c119..fc18c349c9c647b00d3304bb7b8438d6b8cc2614 100644 (file)
--- 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;