]> err.no Git - pkg-config/commitdiff
pkg.c (string_list_to_string): Patch from Paul Bender so flags other
authorTollef Fog Heen <tfheen@err.no>
Thu, 31 Jan 2008 01:27:33 +0000 (02:27 +0100)
committerTollef Fog Heen <tfheen@err.no>
Thu, 31 Jan 2008 01:27:33 +0000 (02:27 +0100)
than -I and -L are passed through (with mangling) when
PKG_CONFIG_SYSROOT_DIR is set.

ChangeLog
pkg.c

index 5a4b3a19e75b00f664a3f403af202300ae65cb0b..6bfe2ed98be23102598b8af842e521e98f5b601b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-31  Tollef Fog Heen  <tfheen@err.no>
+
+       * pkg.c (string_list_to_string): Patch from Paul Bender so flags
+       other than -I and -L are passed through (with mangling) when
+       PKG_CONFIG_SYSROOT_DIR is set.
+
 2008-01-16  Tollef Fog Heen  <tfheen@err.no>
 
        * NEWS, configure.in: Release 0.23
diff --git a/pkg.c b/pkg.c
index 7f252bde2bda911e4c08f3437b0f99601f5ec9fa..540d7935a1e022db84fdb8eb598eb1a6e8c7dbc0 100644 (file)
--- a/pkg.c
+++ b/pkg.c
@@ -483,8 +483,12 @@ string_list_to_string (GSList *list)
              g_string_append (str, pcsysrootdir);
              g_string_append (str, tmpstr+2);
            }
+         else
+           {
+             g_string_append (str, tmpstr);
+           }
        }
-      else 
+      else
        {
          g_string_append (str, tmpstr);
        }