From 1637dff44c4438ffdd565bbef9b30e7a335a4fc4 Mon Sep 17 00:00:00 2001 From: Shengwen Cheng Date: Mon, 9 Jun 2025 21:45:01 +0800 Subject: [PATCH] PortAudio: Disable sndio in PortAudio to avoid missing -lsndio errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a compilation error introduced in #76, where the `make all` target fails during the build of the PortAudio library on GNU/Linux systems. The failure was caused by PortAudio's configure script automatically enabling the sndio backend when `libsndio-dev` headers are present, which leads to linker errors due to missing `-lsndio`. To avoid this, we now explicitly pass `--without-sndio` to PortAudio’s configure script. This ensures that sndio support is disabled regardless of system headers, eliminating the need for `-lsndio` and fixing the build. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b15e0f5..629d1cd 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ ifeq ($(call has, VIRTIOSND), 1) portaudio/Makefile: git submodule update --init portaudio $(PORTAUDIOLIB): portaudio/Makefile - cd $(dir $<) && ./configure + cd $(dir $<) && ./configure --without-sndio $(MAKE) -C $(dir $<) main.o: $(PORTAUDIOLIB)