summaryrefslogtreecommitdiff
path: root/meta/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch
blob: c5ee82e9aa223565f99fd8a9a395ea978c3860e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: pkg-config-0.23/pkg.c
===================================================================
--- pkg-config-0.23.orig/pkg.c	2008-03-26 22:18:39.000000000 +0000
+++ pkg-config-0.23/pkg.c	2008-03-26 22:31:11.000000000 +0000
@@ -472,19 +472,15 @@
   while (tmp != NULL)
     {
       char *tmpstr = (char*) tmp->data;
-      if (pcsysrootdir != NULL)
+      if (pcsysrootdir != NULL && tmpstr[0] == '-' &&
+	      (tmpstr[1] == 'I' || tmpstr[1] == 'L'))
 	{
-	  if (tmpstr[0] == '-' &&
-	      (tmpstr[1] == 'I' ||
-	       tmpstr[1] == 'L'))
-	    {
-	      g_string_append_c (str, '-');
-	      g_string_append_c (str, tmpstr[1]);
-	      g_string_append (str, pcsysrootdir);
-	      g_string_append (str, tmpstr+2);
-	    }
+	  g_string_append_c (str, '-');
+	  g_string_append_c (str, tmpstr[1]);
+	  g_string_append (str, pcsysrootdir);
+	  g_string_append (str, tmpstr+2);
 	}
-      else 
+      else
 	{
 	  g_string_append (str, tmpstr);
 	}