From: Daniel Golle Date: Thu, 10 Sep 2026 12:07:06 +0000 (+0100) Subject: sysrepo: use ATOMIC64_DEPENDS X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a4700ccda3c98a23a6dc8a3f22eda56bd681af93;p=openwrt-packages.git sysrepo: use ATOMIC64_DEPENDS 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 --- diff --git a/net/sysrepo/Makefile b/net/sysrepo/Makefile index ac7221ddb..6b6ad6d89 100644 --- a/net/sysrepo/Makefile +++ b/net/sysrepo/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk 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)? @@ -29,7 +29,7 @@ define Package/libsysrepo 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 @@ -61,6 +61,8 @@ Sysrepo is an YANG-based configuration and operational state data store for Unix endef +TARGET_LDFLAGS += -Wl,--as-needed + CMAKE_OPTIONS += \ -DFORCE_WSL=TRUE \ -DENABLE_TESTS:BOOL=FALSE \