diff options
author | Michael Matz <matz@suse.de> | 2017-12-23 14:49:07 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@debian.org> | 2018-02-28 21:03:17 +0000 |
commit | bba4d2221718fa328dfcff5cba6b03b4ad3b98ca (patch) | |
tree | 257c0bf77c4bcd0601325a766a57b51597a1cabd | |
parent | 6d1e53e519fb2013745907ec6604909c45d50b0d (diff) |
Fix -pthread option handling
Adding -pthread confused option parsing as the number of file counting
came out wrong.
Origin: upstream, http://repo.or.cz/tinycc.git/commit/3b27b3b1d1ae953f5ecb37f5bc95758499d66971
Bug-Debian: https://bugs.debian.org/891592
Last-Update: 2018-02-28
Applied-Upstream: commit:3b27b3b1d1ae953f5ecb37f5bc95758499d66971
Gbp-Pq: Name 0004-Fix-pthread-option-handling.patch
-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) |