aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c3
1 files changed, 3 insertions, 0 deletions
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)