ref:e776b65b176b7a338a2eaa6eac202c0fe5ab0e7e

build(homebrew): dynamic link opus (#4826)

SHA: e776b65b176b7a338a2eaa6eac202c0fe5ab0e7e
Author: David Lane <42013603+ReenigneArcher@users.noreply.github.com>
Date: 2026-03-07 12:23
Parents: c4c10a1
1 files changed +6 -1
Type
cmake/dependencies/common.cmake +6 −1
@@ -33,7 +33,12 @@
include("${CMAKE_MODULE_PATH}/dependencies/ffmpeg.cmake")
# Opus
set(OPUS_USE_STATIC ON CACHE BOOL "Static linking for libopus")
# Homebrew provides opus as a dynamic library only, so disable static linking for Homebrew builds
if(SUNSHINE_BUILD_HOMEBREW)
set(OPUS_USE_STATIC OFF CACHE BOOL "Static linking for libopus")
else()
set(OPUS_USE_STATIC ON CACHE BOOL "Static linking for libopus")
endif()
include("${CMAKE_MODULE_PATH}/dependencies/FindOpus.cmake")
# platform specific dependencies