1 [PATCH] fix PKG_CONFIG_SYSROOT_DIR handling
3 With PKG_CONFIG_SYSROOT_DIR enabled, everything else than -L and -I words
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
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
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' ||
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);