Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zstd: don't add -pthread to static linking flags on Windows #1484

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

bgilbert
Copy link
Contributor

Meson always returns -pthread in dependency('threads') on non-MSVC compilers. On Windows, zstd uses 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.

Merged upstream in facebook/zstd#3931.

Meson always returns -pthread in dependency('threads') on non-MSVC
compilers.  On Windows, zstd uses 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.

Merged upstream in facebook/zstd#3931.
@eli-schwartz eli-schwartz merged commit 43b92c4 into mesonbuild:master Apr 21, 2024
9 checks passed
@eli-schwartz
Copy link
Member

Thanks!

@bgilbert bgilbert deleted the zstd branch April 21, 2024 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants