Skip to content

Commit 586df93

Browse files
committed
PortAudio: Add missing -lsndio flag to fix build failure on Linux
Fixes a compilation error introduced in sysprog21#76, where the `make all` target fails during the build of the PortAudio library on GNU/Linux systems. The failure was caused by a missing `-lsndio` linker flag. Adding this flag resolves the issue and allows the build to complete successfully.
1 parent 82f39b9 commit 586df93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: install-dependencies
1111
run: |
1212
sudo apt-get install build-essential device-tree-compiler expect
13-
sudo apt-get install libasound2-dev libudev-dev
13+
sudo apt-get install libsndio-dev libasound2-dev libudev-dev
1414
- name: default build
1515
run: make
1616
shell: bash

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ifeq ($(call has, VIRTIOSND), 1)
8181
LDFLAGS += $(PORTAUDIOLIB)
8282

8383
ifeq ($(UNAME_S),Linux)
84-
LDFLAGS += -lasound -lrt
84+
LDFLAGS += -lasound -lrt -lsndio
8585
# Check PulseAudio installation
8686
ifeq (0, $(call check-pa))
8787
LDFLAGS += -lpulse

0 commit comments

Comments
 (0)