Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/CMakeLists.txt: link libplfit against $MATH_LIBRARY
The libplfit library makes use of several math functions (exp, log, ...) , and so should be linked to libm directly when libm is required for those functions. If it is not, then compilation may succeed leaving the resulting library underlinked. This can lead to errors like, test_discrete: symbol lookup error: .../src/libplfit.so.0: undefined symbol: log when linking with lld and LDFLAGS="Wl,--as-needed". (The error above comes from plfit's own test suite.) Gentoo-bug: https://bugs.gentoo.org/926433
- Loading branch information