From 7b7bdfc2fe7e926f1a9eec482687b2dd2404d123 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 5 Sep 2019 18:07:37 +0000 Subject: build: explicitly link sndio against -lpthread /usr/bin/ld.bfd: libcubeb.so: undefined reference to `pthread_create' --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 548eaf4..d567c59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,7 +212,7 @@ if(USE_SNDIO) target_sources(cubeb PRIVATE src/cubeb_sndio.c) target_compile_definitions(cubeb PRIVATE USE_SNDIO) - target_link_libraries(cubeb PRIVATE sndio) + target_link_libraries(cubeb PRIVATE sndio pthread) endif() check_include_files(sys/audioio.h USE_SUN) -- cgit v1.2.3