diff options
author | Richard Purdie <richard@openedhand.com> | 2008-03-26 22:37:55 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-03-26 22:37:55 +0000 |
commit | cd22fcc461abb68f9f901433c3489bc562e3fa99 (patch) | |
tree | 3be39e26d651edd06e4ed129a46ff76423145b5c /meta/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch | |
parent | c3735c4462710b2c04ed4e2de90ab6bdfc148504 (diff) | |
download | openembedded-core-cd22fcc461abb68f9f901433c3489bc562e3fa99.tar.gz openembedded-core-cd22fcc461abb68f9f901433c3489bc562e3fa99.tar.bz2 openembedded-core-cd22fcc461abb68f9f901433c3489bc562e3fa99.zip |
pkgconfig: Fix problems with the sysroot implementation merged upstream, switch pkgconfig to link against an external glib-2.0
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4126 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch')
-rw-r--r-- | meta/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch b/meta/packages/pkgconfig/pkgconfig-0.23/sysrootfix.patch new file mode 100644 index 0000000000..c5ee82e9aa --- /dev/null +++ b/meta/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); + } |