bump version
[buildroot.git] / package / pkgconfig / pkg-config-0.23-fix-sysroot.patch
blob36538112b2cf3c2be534a2ec18880c694161bf59
1 [PATCH] fix PKG_CONFIG_SYSROOT_DIR handling
3 With PKG_CONFIG_SYSROOT_DIR enabled, everything else than -L and -I words
4 gets stripped away.
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 ---
8 pkg.c | 8 ++------
9 1 file changed, 2 insertions(+), 6 deletions(-)
11 Index: pkg-config-0.23/pkg.c
12 ===================================================================
13 --- pkg-config-0.23.orig/pkg.c
14 +++ pkg-config-0.23/pkg.c
15 @@ -472,17 +472,13 @@
16 while (tmp != NULL)
18 char *tmpstr = (char*) tmp->data;
19 - if (pcsysrootdir != NULL)
20 + if (pcsysrootdir != NULL && tmpstr[0] == '-' &&
21 + (tmpstr[1] == 'I' || tmpstr[1] == 'L'))
23 - if (tmpstr[0] == '-' &&
24 - (tmpstr[1] == 'I' ||
25 - tmpstr[1] == 'L'))
26 - {
27 g_string_append_c (str, '-');
28 g_string_append_c (str, tmpstr[1]);
29 g_string_append (str, pcsysrootdir);
30 g_string_append (str, tmpstr+2);
31 - }
33 else