[PATCH] Prepend pcsysrootdir to directory variables.

Thierry Reding thierry.reding at avionic-design.de
Tue May 11 01:50:26 PDT 2010


---
 pkg.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkg.c b/pkg.c
index 3689cae..5ddaf6b 100644
--- a/pkg.c
+++ b/pkg.c
@@ -1272,6 +1272,9 @@ packages_get_var (GSList     *pkgs,
       
       if (var)
         {
+          if ((pcsysrootdir != NULL) && (var[0] == G_DIR_SEPARATOR))
+            g_string_append (str, pcsysrootdir);
+
           g_string_append (str, var);
           g_string_append_c (str, ' ');                
           g_free (var);
-- 
1.7.1



More information about the pkg-config mailing list