forked from Mirrors/tinycc
tcc.c: skip -lpthread when -c option specified
parent
0d38e3b663
commit
9e406656c7
6
tcc.c
6
tcc.c
|
@ -298,8 +298,10 @@ static int parse_args(TCCState *s, int argc, char **argv)
|
||||||
break;
|
break;
|
||||||
case TCC_OPTION_pthread:
|
case TCC_OPTION_pthread:
|
||||||
/* fixme: these options could be different on your platform */
|
/* fixme: these options could be different on your platform */
|
||||||
dynarray_add((void ***)&files, &nb_files, "-lpthread");
|
if(output_type != TCC_OUTPUT_OBJ){
|
||||||
nb_libraries++;
|
dynarray_add((void ***)&files, &nb_files, "-lpthread");
|
||||||
|
nb_libraries++;
|
||||||
|
}
|
||||||
tcc_define_symbol(s, "_REENTRANT", "1");
|
tcc_define_symbol(s, "_REENTRANT", "1");
|
||||||
break;
|
break;
|
||||||
case TCC_OPTION_bench:
|
case TCC_OPTION_bench:
|
||||||
|
|
Loading…
Reference in New Issue