From 2f1174550e9b2356b7cebe9346858b1f1155520e Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 1 Oct 2016 20:49:38 +0200 Subject: libtcc: -Wl,... incremental parsing parse -Wl linker options immediately --- tcc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tcc.c') diff --git a/tcc.c b/tcc.c index 0e516d1..2bfc672 100644 --- a/tcc.c +++ b/tcc.c @@ -303,6 +303,9 @@ int main(int argc, char **argv) if (!s->ppfp) tcc_error("could not write '%s'", s->outfile); } + } else if (s->output_type != TCC_OUTPUT_OBJ) { + if (s->option_pthread) + tcc_set_options(s, "-lpthread"); } if (s->do_bench) -- cgit v1.3.1