libtcc: -Wl,... incremental parsing

parse -Wl linker options immediately
This commit is contained in:
grischka
2016-10-01 20:49:38 +02:00
parent 2d6aa65067
commit 2f1174550e
3 changed files with 31 additions and 38 deletions

3
tcc.c
View File

@ -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)