From 765c24740d6d2a1e3256ee90dc126d05917ca15d Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sat, 12 Oct 2019 22:11:07 +0800 Subject: [PATCH 1/2] 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. --- src/libzmq.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libzmq.pc.in b/src/libzmq.pc.in index 233bc3a0..c3c2ac2e 100644 --- a/src/libzmq.pc.in +++ b/src/libzmq.pc.in @@ -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@ From ca30ee78f6ef7bc74e4bddb02b80f6828e3c8a80 Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sat, 12 Oct 2019 22:31:54 +0800 Subject: [PATCH 2/2] Add relicense note for @yan12125 Based on RELICENSE/templates/relicense-template-mplv2.txt. MPLv2 is definitely fine, but I'm not sure if I'm OK with other licenses. --- RELICENSE/yan12125.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 RELICENSE/yan12125.md diff --git a/RELICENSE/yan12125.md b/RELICENSE/yan12125.md new file mode 100644 index 00000000..69832838 --- /dev/null +++ b/RELICENSE/yan12125.md @@ -0,0 +1,13 @@ +# Permission to Relicense under MPLv2 + +This is a statement by Chih-Hsuan Yen +that grants permission to relicense its copyrights in the libzmq C++ +library (ZeroMQ) under the Mozilla Public License v2 (MPLv2). + +A portion of the commits made by the Github handle "yan12125", with +commit author "Chih-Hsuan Yen ", are copyright of Chih-Hsuan Yen. +This document hereby grants the libzmq project team to relicense libzmq, +including all past, present and future contributions of the author listed above. + +Chih-Hsuan Yen +2019/10/12