Fix -pthread in a different way

This commit is contained in:
Michael Matz 2017-12-23 14:49:07 +01:00
parent 1b1b270f1e
commit 3b27b3b1d1
1 changed files with 3 additions and 1 deletions

4
tcc.c
View File

@ -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)