-fnormalize-inc-dirs

remove non-existent or duplicate directories from include paths
    if -fnormalize-inc-dirs is specified. This will help
    to compile current coreutils package
This commit is contained in:
seyko
2016-04-03 11:42:15 +03:00
parent 2bf43b5483
commit 41785a0bf9
3 changed files with 96 additions and 1 deletions

View File

@ -1663,6 +1663,7 @@ ST_FUNC void preprocess(int is_bof)
/* search in all the include paths */
int j = i - 2, k = j - s1->nb_include_paths;
path = k < 0 ? s1->include_paths[j] : s1->sysinclude_paths[k];
if (path == 0) continue;
pstrcpy(buf1, sizeof(buf1), path);
pstrcat(buf1, sizeof(buf1), "/");
}