+2004-03-02 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * cppinit.c (init_standard_includes): Check that sysroot
+ string is not empty.
+
2004-03-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
Backport from 3.4.0:
/* Should we be translating sysrooted dirs too? Assume
that iprefix and sysroot are mutually exclusive, for
now. */
- if (p->add_sysroot && CPP_OPTION (pfile, sysroot))
+ if (p->add_sysroot && CPP_OPTION (pfile, sysroot)
+ && *(CPP_OPTION (pfile, sysroot)))
continue;
/* Does this dir start with the prefix? */
char *str;
/* Should this dir start with the sysroot? */
- if (p->add_sysroot && CPP_OPTION (pfile, sysroot))
+ if (p->add_sysroot && CPP_OPTION (pfile, sysroot)
+ && *(CPP_OPTION (pfile, sysroot)))
str = concat (CPP_OPTION (pfile, sysroot), p->fname, NULL);
else