Control: tags -1 patch On 2018-02-26 22:24:32 +0100, Vincent Lefevre wrote: > I can read in the logs, just after the 0.9.27 release: > > commit 3b27b3b1d1ae953f5ecb37f5bc95758499d66971 > Author: Michael Matz <m...@suse.de> > Date: 2017-12-23 14:49:07 +0100 > > Fix -pthread in a different way
Corresponding patch attached. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
diff --git a/tcc.c b/tcc.c index cd887d1..ee55ddd 100644 --- a/tcc.c +++ b/tcc.c @@ -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)