Ticket #31948: patch-incpath.c.diff

File patch-incpath.c.diff, 483 bytes (added by royliu@…, 13 years ago)

A patch that prevents prepending of the -isysroot option argument to the compiler's own search path.

  • gcc/c-incpath.c

    add_standard_paths (const char *sysroot, const char *iprefix, 
    164164          char *str;
    165165
    166166          /* Should this directory start with the sysroot?  */
    167           if (sysroot && p->add_sysroot)
    168             str = concat (sysroot, p->fname, NULL);
    169           else
    170             str = update_path (p->fname, p->component);
     167          str = update_path (p->fname, p->component);
    171168
    172169          if (p->multilib && imultilib)
    173170            str = concat (str, dir_separator_str, imultilib, NULL);