diff options
Diffstat (limited to 'tcc.c')
-rw-r--r-- | tcc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -298,8 +298,10 @@ redo: if (n > 1 && s->outfile) tcc_error("cannot specify output file with -c many files"); } else { - if (s->option_pthread) + if (s->option_pthread) { tcc_set_options(s, "-lpthread"); + n = s->nb_files; + } } if (s->do_bench) |