Expose all math *l functions as aliases for the * functions when long double == double

Justin Hibbits chmeeedalf at gmail.com
Thu Dec 27 22:09:47 UTC 2018

When building editors/calligra on powerpc64 it failed with undefined
references to erfl and erfcl.  Some digging it turns out that these
functions aren't being exposed as weak symbols in libm on platforms
where long double is 64 bits, because LDBL_MANT_DIG is not defined in
the files defining these functions.  The attached patch fixes that
case.  It's only been compile-tested for powerpc64, but should have no
negative impact on any other platform.

- Justin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msun_ldbl64.diff
Type: text/x-patch
Size: 942 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-numerics/attachments/20181227/c0b6dfeb/attachment.bin>

More information about the freebsd-numerics mailing list