package/zmqpp: fix static build issues
authorJörg Krause <joerg.krause@embedded.rocks>
Mon, 23 Nov 2015 22:23:21 +0000 (23:23 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Nov 2015 14:09:27 +0000 (15:09 +0100)
commitf3b3d6e27cdadb569e10587055af3a429e8c6608
treedfe4bc4fdd266781803d330deacc3a2502cc5459
parent0f48e36873b9106b6b38ed0d413bc3cecaf495be
package/zmqpp: fix static build issues

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>
package/zmqpp/0002-Allow-building-shared-or-static-library-only.patch [new file with mode: 0644]
package/zmqpp/Config.in
package/zmqpp/zmqpp.mk