aleaxit / gmpy

General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)
https://gmpy2.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
519 stars 86 forks source link

Explicitly link against libm #331

Closed dfandrich closed 2 years ago

dfandrich commented 2 years ago

The code uses log() which requires this library, but it relied on Python's own link to this library to resolve the symbol. Making the requirement explicit is not only more clear, but prevents GNU ld's --no-undefined option from complaining.

casevh commented 2 years ago

Thanks!