aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-01 20:49:38 +0200
committergrischka <grischka>2016-10-01 20:49:38 +0200
commit2f1174550e9b2356b7cebe9346858b1f1155520e (patch)
tree4bc30e1ddd0570c2c0dc523bbd35d52496b1f4be /tcc.c
parent2d6aa65067b6d1127abb62bd11d2ddaf6b4cf492 (diff)
downloadtinycc-2f1174550e9b2356b7cebe9346858b1f1155520e.tar.gz
tinycc-2f1174550e9b2356b7cebe9346858b1f1155520e.tar.bz2
libtcc: -Wl,... incremental parsing
parse -Wl linker options immediately
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)