]> git.ipfire.org Git - thirdparty/zstd.git/commit
meson: don't add -pthread to static linking flags on Windows 3931/head
authorBenjamin Gilbert <bgilbert@backtick.net>
Thu, 7 Mar 2024 12:40:27 +0000 (21:40 +0900)
committerBenjamin Gilbert <bgilbert@backtick.net>
Wed, 10 Apr 2024 16:27:24 +0000 (01:27 +0900)
commit5be2a8721d527ae349539b459b35fb628467e00d
treeeb91f5d71b80b4fd4c7056a589fd57bc24c77016
parent9f42fa0a043aa389534cf10ff086976c4c6b10a6
meson: don't add -pthread to static linking flags on Windows

Meson always returns -pthread in dependency('threads') on non-MSVC
compilers.  On Windows we use Windows threading primitives, so we don't
need this.  Avoid adding -pthread to libzstd's link flags, either as a
Meson subproject or via pkg-config Libs.private, so the application
doesn't inadvertently depend on winpthreads.

Add a Meson MinGW cross-compile CI test that checks for this.  It turns
out that pzstd fails to build in that environment, so have the test
skip building contrib for now.
.github/workflows/dev-short-tests.yml
build/meson/meson.build
build/meson/meson_options.txt