From 303e850a902a55558b398bedaedea3c616a5ec94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 14 Apr 2024 18:49:47 +0200 Subject: [PATCH] Native/OpenAL Soft: Explicitly disable sndio support. The sndio backend takes a hard dependency on libsndio.so, unlike most other backends which load libraries dynamically. We don't want our libopenal.so to require users to install sndio. --- build/nuke/Native/OpenALSoft.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/nuke/Native/OpenALSoft.cs b/build/nuke/Native/OpenALSoft.cs index e6a25b5653..4249ce970e 100644 --- a/build/nuke/Native/OpenALSoft.cs +++ b/build/nuke/Native/OpenALSoft.cs @@ -70,7 +70,7 @@ partial class Build { { EnsureCleanDirectory(buildDir); - InheritedShell($"{prepare} {GetCMakeToolchainFlag(triple)}", buildDir).AssertZeroExitCode(); + InheritedShell($"{prepare} -DALSOFT_BACKEND_SNDIO=OFF {GetCMakeToolchainFlag(triple)}", buildDir).AssertZeroExitCode(); InheritedShell(build, buildDir).AssertZeroExitCode(); InheritedShell($"{triple}-strip --strip-unneeded libopenal.so", buildDir).AssertZeroExitCode();