-
-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Avoding linker scripts in MinGW libraries #935
Comments
Feel free to improve how they are generated. https://github.com/retep998/windump-rs/blob/master/src/bin/exports.rs Ideally I'd like raw-dylib to be implemented so I don't need these import libraries. |
We actually don't need these import libs any more when not using self-contained mode. Maybe Rust should somehow tell if it's using native or self-contained mode so crates like winapi can avoid hacks like this one? |
If there is some way to detect whether Rust is not using self-contained mode, then sure I could have winapi automatically disable the bundled import libraries. raw-dylib is still better though. |
Raw-dylib is great but latest PR seems stuck: rust-lang/rust#71497 cc @petrochenkov Do you think Rust could somehow notify crates it is using native linkage mode so |
This seems more complex than setting
|
Cargo docs don't mention |
|
LLD doesn't and won't support linker scripts in COFF mode. That creates a problem since
winapi
has following linker scripts:Maybe the they could be consolidated into single objects (just like mingw-w64 does) or replaced with response files?
For now I've set
WINAPI_NO_BUNDLED_LIBRARIES=1
.The text was updated successfully, but these errors were encountered: