From: Daniel Golle Date: Thu, 10 Sep 2026 12:07:07 +0000 (+0100) Subject: ustreamer: use ATOMIC64_DEPENDS X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=763e45c8901b6fd95434175503cfea70cf94a5cc;p=openwrt-packages.git ustreamer: use ATOMIC64_DEPENDS ustreamer and ustreamer-dump import 64-bit atomics from libatomic where the compiler cannot inline them, but the 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/multimedia/ustreamer/Makefile b/multimedia/ustreamer/Makefile index d640961f0..3837ba54a 100644 --- a/multimedia/ustreamer/Makefile +++ b/multimedia/ustreamer/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ustreamer PKG_VERSION:=6.52 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Georgi Valkov PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -20,13 +20,14 @@ PKG_LICENSE_FILES:=LICENSE include $(INCLUDE_DIR)/package.mk MAKE_FLAGS += WITH_SETPROCTITLE=0 +TARGET_LDFLAGS += -Wl,--as-needed define Package/ustreamer - SECTION:=multimedia - CATEGORY:=Multimedia - TITLE:=Lightweight and fast MJPEG-HTTP streamer - DEPENDS:=+libatomic +libjpeg +libevent2 +libevent2-pthreads - URL:=https://github.com/pikvm/ustreamer + SECTION:=multimedia + CATEGORY:=Multimedia + TITLE:=Lightweight and fast MJPEG-HTTP streamer + DEPENDS:=$(ATOMIC64_DEPENDS) +libjpeg +libevent2 +libevent2-pthreads + URL:=https://github.com/pikvm/ustreamer endef define Package/ustreamer/description