f3b3d6e27c
The Makefile for zmqpp builds both shared and static libraries and the client binary. This leads to several build issues in a pure static library context: * R_ARM_TLS_LE32 relocation not permitted in shared object * relocation R_ARC_32_ME against `_ZSt7nothrow' can not be used when making a shared object; recompile with -fPIC We add a minimal patch to add some basic handling of building a shared or a static library only. Additionally, disable the client for static only builds as it depends on building the shared library in zmqpp's Makefile. As there is already version 4.1.2 available which provides a CMake build file which solves this issue (probably, not tested) we don't care for now. Fixes: http://autobuild.buildroot.net/results/345/345771eb488c60585e388fbbf4490df936e88e19/ http://autobuild.buildroot.net/results/21b/21b6912c70a5c300bdabde53bee6a1d9cc3bbb02/ http://autobuild.buildroot.net/results/d98/d9882d2ba00da16f76cea6d86a84cd4815ebbba2/ [Thomas: - don't change TARGET_CONFIGURE_OPTS, use ZMQPP_MAKE_OPTS instead. - simplify condition logic.] Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
config BR2_PACKAGE_ZMQPP
|
|
bool "zmqpp"
|
|
# c++0x support
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_USE_WCHAR # util-linux
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq
|
|
select BR2_PACKAGE_ZEROMQ
|
|
help
|
|
C++ binding for zeromq (ZeroMQ, 0MQ, zmq).
|
|
|
|
This C++ binding is a 'high-level' library that hides most of the
|
|
C-style interface core zeromq provides.
|
|
|
|
http://github.com/benjamg/zmqpp
|
|
|
|
comment "zmqpp needs a toolchain w/ C++, wchar, threads, gcc >= 4.6"
|
|
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
|
|
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
|
|
|
|
if BR2_PACKAGE_ZMQPP
|
|
|
|
config BR2_PACKAGE_ZMQPP_CLIENT
|
|
bool "zmqpp client"
|
|
depends on !BR2_STATIC_LIBS
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # boost
|
|
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
|
|
select BR2_PACKAGE_BOOST
|
|
select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
|
|
help
|
|
Build and install the zmqpp client, a command line tool that can be
|
|
used to listen or send to zeromq sockets.
|
|
|
|
comment "zmqpp client needs a toolchain w/ dynamic library, threads"
|
|
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
|
|
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
|
|
|
endif
|