https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84323 --- Comment #1 from Antony Polukhin <antoshkka at gmail dot com> --- Fixing this will also resolve Bug 55394, because there'll be no need in linking with pthread.