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

index d640961f0d4ee8116aaacb4396c29bc8775a97db..3837ba54aa9348e986fe871f2e8a7cd3cf88c54a 100644 (file)
@@ -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 <gvalkov@gmail.com>
 
 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
git clone https://git.99rst.org/PROJECT