summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f822fb5..5c896ac 100644
--- a/meson.build
+++ b/meson.build
@@ -485,6 +485,9 @@ if dep_threads.found() and cc.has_header('pthread.h')
else
pthreads_found = true
endif
+else
+ # Avoid linking with -pthread if we don't actually have pthreads
+ dep_threads = null_dep
endif
if pthreads_found