diff options
author | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2010-12-13 18:21:24 +0100 |
---|---|---|
committer | Bjoern Michaelsen <b_michaelsen@openoffice.org> | 2010-12-13 18:21:24 +0100 |
commit | e09da93efa3046dea97be4490f30942cae5f16bc (patch) | |
tree | 26f19850cc8f9b1667695d7ef8aa2adfd1abeda7 | |
parent | gnumake2: temporary disable PCH for some objects (diff) | |
download | core-e09da93efa3046dea97be4490f30942cae5f16bc.tar.gz core-e09da93efa3046dea97be4490f30942cae5f16bc.zip |
gnumake2: fixing broken makedepend behaviour
-rw-r--r-- | soltools/mkdepend/include.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c index 45d0730393a3..4446489ba259 100644 --- a/soltools/mkdepend/include.c +++ b/soltools/mkdepend/include.c @@ -71,15 +71,18 @@ struct inclist *inc_path(file, include, dot, incCollection) * If the path was surrounded by "" or is an absolute path, * then check the exact path provided. */ - if (!found && (dot || *include == '/')) { - - if ((exists_path(incCollection, include)) && stat(include, &st) == 0 && !( st.st_mode & S_IFDIR)) { - ip = newinclude(include, include); - found = TRUE; - } - else if (show_where_not) - warning1("\tnot in %s\n", include); - } +// FIXME: creates duplicates in the dependency files if absolute paths are +// given, which certainly is not the intended behavior. Also it slows down +// makedepend performance considerably. +// if (!found && (dot || *include == '/')) { +// +// if ((exists_path(incCollection, include)) && stat(include, &st) == 0 && !( st.st_mode & S_IFDIR)) { +// ip = newinclude(include, include); +// found = TRUE; +// } +// else if (show_where_not) +// warning1("\tnot in %s\n", include); +// } /* * See if this include file is in the directory of the |