]> git.99rst.org Git - openwrt-packages.git/commitdiff
sysrepo: use ATOMIC64_DEPENDS
authorDaniel Golle <redacted>
Thu, 10 Sep 2026 12:07:06 +0000 (13:07 +0100)
committerDaniel Golle <redacted>
Wed, 16 Sep 2026 15:35:19 +0000 (16:35 +0100)
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>
net/sysrepo/Makefile

index ac7221ddbcd24843264f0d705fabdb75b703f8e2..6b6ad6d8929f8116bbdb22cf69a575fb837c3f24 100644 (file)
@@ -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 \
git clone https://git.99rst.org/PROJECT