0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 07:31:03 +08:00

Problem: pkg-config file cannot be used for static linking on CentOS 7

Solution: add -lm to Libs.private of libzmq.pc so that the std::ceil
usage in src/decoder_allocators.cpp is satisfied during static linking
on CentOS 7.

See https://github.com/zeromq/libzmq/issues/3710 for a reproducer.
This commit is contained in:
Chih-Hsuan Yen 2019-10-12 22:11:07 +08:00
parent 96bc59a6ce
commit 765c24740d
No known key found for this signature in database
GPG Key ID: F98EF2A7B0A098AE

View File

@ -7,6 +7,6 @@ Name: libzmq
Description: 0MQ c++ library
Version: @VERSION@
Libs: -L${libdir} -lzmq
Libs.private: -lstdc++ @pkg_config_libs_private@
Libs.private: -lstdc++ -lm @pkg_config_libs_private@
Requires.private: @pkg_config_names_private@
Cflags: -I${includedir} @pkg_config_defines@