Add to libpthread.so.0 to libs.
@@ -25,7 +25,7 @@ static struct lib {
void *handler;
} libs[] = {
#if !defined(__APPLE__)
- {"/lib64/libc.so.6", NULL}, {"/lib64/libm.so.6", NULL}
+ {"/lib64/libc.so.6", NULL}, {"/lib64/libm.so.6", NULL}, {"/lib64/libpthread.so.0", NULL}
#endif
};
@@ -132,8 +132,8 @@ int main (int argc, char *argv[], char *env[]) {
#endif
exit_code = val.i;
} else {
- MIR_gen_init (ctx);
- MIR_gen_set_debug_file (ctx, stderr);
+ MIR_gen_init (ctx, 1);
+ MIR_gen_set_debug_file (ctx, 0, stderr);
MIR_link (ctx, MIR_USE_GEN ? MIR_set_gen_interface : MIR_set_lazy_gen_interface,
import_resolver);
#if MIR_BIN_DEBUG
@@ -143,7 +143,7 @@ int main (int argc, char *argv[], char *env[]) {
: "Finish of MIR loading/linking/generation (%d funcs) -- curr_time %.0f usec\n"),
funcs_num, real_usec_time () - start_time);
#endif
- fun_addr = MIR_gen (ctx, main_func);
+ fun_addr = MIR_gen (ctx, 0, main_func);
#if MIR_BIN_DEBUG
start_time = real_usec_time ();
#endif
