Jason Merrill wrote: > > One more thing: the flag. How about -fthreads instead of -threads? Or -mthreads which is already present for some targets to force the use of thread-safe versions of libc and crt0.o. (or -fthreads should force -mthreads?) Andrey.