Commit eb2211a
zstd: don't add -pthread to static linking flags on Windows
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.1 parent e35cba0 commit eb2211a
File tree
3 files changed
+9
-3
lines changed- subprojects/packagefiles/zstd
3 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3548 | 3548 | | |
3549 | 3549 | | |
3550 | 3550 | | |
| 3551 | + | |
3551 | 3552 | | |
3552 | 3553 | | |
3553 | 3554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments