libjson-c is happy to pick up libbsd both on the host and target.
Reproducible with
make package/libbsd/compile;make package/libjson-c/compile
Also fixes host compilation on Arch Linux for a similar reason.
Undefined reference to arc4random.
Fixes: f3a198697f60 ("libjson-c: update to 0.16")
Acked-by: Thomas Huehn thomas.huehn@hs-nordhausen.de
Acked-by: Nick Hainke vincent@systemli.org
Signed-off-by: Rosen Penev <rosenp@gmail.com>
PKG_NAME:=json-c
PKG_VERSION:=0.16
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-nodoc.tar.gz
PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
include $(INCLUDE_DIR)/cmake.mk
CMAKE_HOST_OPTIONS += \
+ -DDISABLE_EXTRA_LIBS=TRUE \
-DBUILD_SHARED_LIBS=FALSE
+CMAKE_OPTIONS += \
+ -DDISABLE_EXTRA_LIBS=TRUE
+
define Package/libjson-c
SECTION:=libs
CATEGORY:=Libraries