https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- Does -Wl,--whole-archive -lpthread make it work?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- Does -Wl,--whole-archive -lpthread make it work?