aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2012-05-13 02:03:47 +0200
committerMichael Matz <matz@suse.de>2012-05-13 02:03:47 +0200
commit0394caf784124f867d9294dab700e6005e99cea4 (patch)
tree234e63b82603d81790759a7704743c324fb4f691 /libtcc.c
parent9ca9c82ff8a4001299a4b9666d85352f5806d565 (diff)
downloadtinycc-0394caf784124f867d9294dab700e6005e99cea4.tar.gz
tinycc-0394caf784124f867d9294dab700e6005e99cea4.tar.bz2
Emit spaces for -MD
TCCs make dependency generator is incompatible with the GNU depcomp script which is widely used. For TCC it has to go over the output of -MD, (it detects it as ICC compatible), but the sed commands it uses are confused by tabs in the output, so that some rewrites aren't done. Those tabs will then finally confuse make itself when the generated .d files are included. It reads them as goal commands (leading tab), and is totally lost then. Short of changing depcomp (hard because distributed with all kinds of software), simply emit spaces for -MD.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index 01280de..b0a9b1a 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1667,7 +1667,7 @@ PUB_FUNC void tcc_gen_makedeps(TCCState *s, const char *target, const char *file
fprintf(depout, "%s : \\\n", target);
for (i=0; i<s->nb_target_deps; ++i)
- fprintf(depout, "\t%s \\\n", s->target_deps[i]);
+ fprintf(depout, " %s \\\n", s->target_deps[i]);
fprintf(depout, "\n");
fclose(depout);
}