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.)
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,
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