From: Jordan Ngako Date: Thu, 25 Dec 2025 19:04:47 +0000 (+0100) Subject: libopen62541: preserve symlinks on install X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=1c1af85fc501a29ffd3295ad6a9ccc33b78ebf4e;p=openwrt-packages.git libopen62541: preserve symlinks on install $(INSTALL_BIN) follows symlinks, causing the .so to be copied multiple times. Use $(CP) instead to preserve symlinks and cut package size by ~2/3. OpenWrt libraries don’t need to be executable, so $(INSTALL_BIN) isn’t required. Signed-off-by: Jordan Ngako --- diff --git a/libs/libopen62541/Makefile b/libs/libopen62541/Makefile index 0182e3a39..e35434b56 100644 --- a/libs/libopen62541/Makefile +++ b/libs/libopen62541/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libopen62541 PKG_VERSION:=1.3.6 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/open62541/open62541.git @@ -102,7 +102,7 @@ endif define Package/libopen62541/install $(INSTALL_DIR) $(1)/usr/lib - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libopen62541.so* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopen62541.so* $(1)/usr/lib/ endef $(eval $(call BuildPackage,libopen62541))