sysrepo-plugind imports 64-bit atomics from libatomic where the
compiler cannot inline them, but the CMake build links the library on
every architecture. ATOMIC64_DEPENDS restricts the dependency to the
targets that need it; --as-needed drops the unused library elsewhere.
Signed-off-by: Daniel Golle <redacted>
PKG_NAME:=sysrepo
PKG_VERSION:=3.7.11
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/sysrepo/sysrepo/tar.gz/v$(PKG_VERSION)?
CATEGORY:=Libraries
TITLE:=YANG-based data store library
URL:=https://www.sysrepo.org/
- DEPENDS:=+libyang +libatomic +libprotobuf-c +libev +librt +libpthread
+ DEPENDS:=+libyang $(ATOMIC64_DEPENDS) +libprotobuf-c +libev +librt +libpthread
endef
define Package/sysrepo
endef
+TARGET_LDFLAGS += -Wl,--as-needed
+
CMAKE_OPTIONS += \
-DFORCE_WSL=TRUE \
-DENABLE_TESTS:BOOL=FALSE \