--- a/pkg.c 2008-01-16 13:59:49.000000000 -0800 +++ b/pkg.c 2008-12-16 10:23:15.000000000 -0800 @@ -472,9 +472,8 @@ while (tmp != NULL) { char *tmpstr = (char*) tmp->data; - if (pcsysrootdir != NULL) - { - if (tmpstr[0] == '-' && + if (pcsysrootdir != NULL && + tmpstr[0] == '-' && (tmpstr[1] == 'I' || tmpstr[1] == 'L')) { @@ -483,7 +482,6 @@ g_string_append (str, pcsysrootdir); g_string_append (str, tmpstr+2); } - } else { g_string_append (str, tmpstr);