summaryrefslogtreecommitdiff
path: root/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch
diff options
context:
space:
mode:
authorJohn Lee <john_lee@openmoko.org>2008-05-30 11:41:16 +0000
committerJohn Lee <john_lee@openmoko.org>2008-05-30 11:41:16 +0000
commit39e4b87201fa468a763a2564e7dc576273779d56 (patch)
tree2d8ebde9b5c816c1f4ae388f590afe0d8d635b17 /packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch
parent742aa153193acdd8dc8f12772101d75337b0bf23 (diff)
pkgconfig-sdk_0.23: add pkgconfig-sdk from poky.
* modify pkgconfig.inc to work with different pkgconfig versions.
Diffstat (limited to 'packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch')
-rw-r--r--packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch b/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch
new file mode 100644
index 0000000000..c5ee82e9aa
--- /dev/null
+++ b/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch
@@ -0,0 +1,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);
+ }