meson.build: remove the libwinpthread-1.dll dependency on Windows
Closes https://github.com/MusicPlayerDaemon/MPD/issues/507
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
threads_dep = dependency('threads')
|
||||
if is_windows
|
||||
# avoid the unused libwinpthread-1.dll dependency on Windows; MPD
|
||||
# doesn't use the pthread API on Windows, but this is what Meson
|
||||
# unhelpfully detects for us
|
||||
threads_dep = []
|
||||
else
|
||||
threads_dep = dependency('threads')
|
||||
endif
|
||||
|
||||
conf.set('HAVE_PTHREAD_SETNAME_NP', compiler.has_function('pthread_setname_np', dependencies: threads_dep))
|
||||
|
||||
|
Reference in New Issue
Block a user