Commit 8e80663f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

meson: Enforce -lpthread when targeting non windows

This is a workaround for libtool based users, which can't use -pthread
only due to libtool using -nostdlib. This makes -pthread not imply
-lpthread, which causes link issues.
Fix #335
parent 203ea4b8
Pipeline #135100 passed with stage
in 7 minutes and 1 second
......@@ -61,7 +61,8 @@ endif
if host_machine.system() == 'windows'
threads_dep = []
threads_dep = dependency('threads')
pthreads = dependency('threads', required: true)
threads_dep = declare_dependency(link_args: '-lpthread', dependencies: pthreads)
sqlite_dep = dependency('sqlite3', version: '>= 3.33.0',
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment