https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111726
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #5) > lgamma_r, lgammaf_r and lgammal_r are present in glibc, musl, newlib, > Solaris, FreeBSD, NetBSD at least. And OpenBSD has lgamma_r and lgammaf_r (but not lgammal_r).