-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add support for declaring linkage to system/platform libraries #74
Comments
I've never build anything on Windows but I trust you if you say such thing would be useful. :) |
On Linux you could imagine people making use of |
It's not a Windows specific issue, Linux also have some extra system libs needed for Rust stdlib. See for example that Meson unit test: https://github.com/mesonbuild/meson/blob/master/test%20cases/rust/5%20polyglot%20static/meson.build. |
With mesonbuild/meson#11790 Meson can already add system libs for Rust std, but we still need a way to get extra libs from Cargo.toml for libs used with e.g. |
Adding to this topic, it would be nice to have the information when crate is built with |
To add to what @xclaesse said, on Linux there's system libs like |
Examples of this would be e.g. the whole zoo of libraries Windows ships, like
bcrypt.dll
orkernel32.dll
(the latter is already pulled in bystd
of course).Having these listed in the
Cargo.toml
would help in case of building astaticlib
as all these libraries will also have to be provided again when linking the final build result (executable or shared library). By having them listed inCargo.toml
they could be extracted from there for later usage.See also mesonbuild/meson#11789
The text was updated successfully, but these errors were encountered: