https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124484
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- -pthread doesn't add -lrt. I guess the above is ok if it works for *-*-linuxmusl* targets as well, no idea what exactly they use. From https://git.musl-libc.org/cgit/musl/tree/Makefile#n64 I'd guess that at least current musl version doesn't need either of those but accepts it like current glibc, but whether it has been that way always, no idea.
