https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118045
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 59889 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59889&action=edit Proposed fix Here is a proposed patch which adds -lm to the shared libraries: libm2iso, libm2pim and libm2log. (libm2min and libm2cor don't use libm).