]> git.99rst.org Git - openwrt-packages.git/commitdiff
openal-soft: drop libatomic dependency
authorDaniel Golle <redacted>
Thu, 10 Sep 2026 13:42:07 +0000 (14:42 +0100)
committerDaniel Golle <redacted>
Wed, 16 Sep 2026 15:35:19 +0000 (16:35 +0100)
The CMake build links libatomic on targets without inline 64-bit
atomics, but libopenal imports no symbol from it. Link with --as-needed
so the unused library is dropped and remove the dependency.

Signed-off-by: Daniel Golle <redacted>
sound/openal-soft/Makefile

index 4180c53455d5e4a2d4943c5fa25bd73d101af032..c9927b0ce5b485b5c0d75cd8886bc840fa22c45d 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openal-soft
 PKG_VERSION:=1.25.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/kcat/openal-soft/tar.gz/$(PKG_VERSION)?
@@ -15,6 +15,8 @@ PKG_LICENSE_FILES:=BSD-3Clause COPYING LICENSE-pffft
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/cmake.mk
 
+TARGET_LDFLAGS += -Wl,--as-needed
+
 CMAKE_OPTIONS +=\
        -DALSOFT_UTILS=OFF \
        -DALSOFT_EXAMPLES=OFF \
@@ -25,7 +27,7 @@ define Package/openal-soft
   SECTION:=sound
   CATEGORY:=Sound
   TITLE:=OpenAL Soft
-  DEPENDS:=+libatomic +libstdcpp
+  DEPENDS:=+libstdcpp
   URL:=https://openal-soft.org
 endef
 
git clone https://git.99rst.org/PROJECT