aboutsummaryrefslogtreecommitdiff
path: root/package/zeromq
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2015-05-13 09:13:28 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-05-13 09:15:21 +0200
commita9876fb0990cc8232eb21f5aaf34f442b3bb5667 (patch)
tree309ba39b9f565243a770994ac0e8680e53f5106f /package/zeromq
parentaa5254f1a2bc0ea3181d51990c18681b3071b9db (diff)
downloadbuildroot-a9876fb0990cc8232eb21f5aaf34f442b3bb5667.tar.gz
buildroot-a9876fb0990cc8232eb21f5aaf34f442b3bb5667.tar.bz2
zeromq: fix pkg-config file for static linking
Fixes: http://autobuild.buildroot.net/results/faf/faf0bb00fccb1350afaef55f6cf14c11a5f5dc3c/ http://autobuild.buildroot.net/results/8d2/8d279baa4c8bffbb01f897119092c7b736942df4/ http://autobuild.buildroot.net/results/4d3/4d3dea604da9a5a1e7fe20548813f8de474ae33f/ http://autobuild.buildroot.net/results/fd6/fd602617839817352763e51754553960b7f795ac/ And many more. Libzmq uses C++ standard library features, so users of it should link against that as well when statically linking. Add it to Libs.private so users using pkg-config automatically gets the correct linker flags. Patch is upstream: https://github.com/zeromq/libzmq/pull/1398 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/zeromq')
-rw-r--r--package/zeromq/0003-libzmq-Fix-pkg-config-files-for-static-linking.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/zeromq/0003-libzmq-Fix-pkg-config-files-for-static-linking.patch b/package/zeromq/0003-libzmq-Fix-pkg-config-files-for-static-linking.patch
new file mode 100644
index 0000000000..11acec26ae
--- /dev/null
+++ b/package/zeromq/0003-libzmq-Fix-pkg-config-files-for-static-linking.patch
@@ -0,0 +1,29 @@
+From e89577d30c278fba0f9e40266ceb6fb2821907d5 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <peter@korsgaard.com>
+Date: Wed, 13 May 2015 08:01:34 +0200
+Subject: [PATCH] libzmq: Fix pkg-config files for static linking
+
+Libzmq uses C++ standard library features, so users of it should link
+against that as well when statically linking.
+
+Add it to Libs.private so users using pkg-config automatically gets the
+correct linker flags.
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ src/libzmq.pc.in | 1 +
+ 1 file changed, 1 insertions(+)
+
+diff --git a/src/libzmq.pc.in b/src/libzmq.pc.in
+index ba155a3..52a39f7 100644
+--- a/src/libzmq.pc.in
++++ b/src/libzmq.pc.in
+@@ -7,4 +7,5 @@ Name: libzmq
+ Description: 0MQ c++ library
+ Version: @VERSION@
+ Libs: -L${libdir} -lzmq
++Libs.private: -lstdc++
+ Cflags: -I${includedir}
+--
+2.1.4
+