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

openssl-3.0.8: meson.build:314:15: Exception: C static library 'ws2_32' not found #1513

Open
kasper93 opened this issue May 10, 2024 · 1 comment

Comments

@kasper93
Copy link

kasper93 commented May 10, 2024

ws2_32 static does not exists and cannot be found. There is a workaround for compiler.get_id() == 'msvc'. It is not enough, it also fails with x86_64-pc-windows-msvc clang build.

foreach library: openssl_libraries
# MSVC fails with "ERROR: C static library 'ws2_32' not found" when `static` is specified at all
if compiler.get_id() == 'msvc'
dependencies += [
compiler.find_library(library),
]
else
dependencies += [
compiler.find_library(
library,
static: get_option('default_library') == 'static',
),
]
endif
endforeach

EDIT: I've actually reported checking only issues, but not PRs, it seems to be known issue #483 for quite some time.

@kasper93
Copy link
Author

Posted issue, because at least currently on my system, there is generic issue with static mesonbuild/meson#13204

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

No branches or pull requests

1 participant