-
Notifications
You must be signed in to change notification settings - Fork 80
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
pkg-config finds mingw *.a library for msvc target #99
Comments
This is actually not a problem if your MinGW toolchain uses UCRT, which is the default CRT for the Rust toolchain. So what you actually want to do, instead of #100, is to peek inside the static library and check the CRT used by one of the object files. Same when linking to an import library. |
(Sorry for late reply, got busy with stuff :D) Mingw with UCRT seems to be underdocumented and I can't seem to find any examples of how to use it. In my mingw-w64 (msys2) installation, I do have a Do you have any example of how to use ucrt-based-mingw to link |
There's a flag you can pass while building the MinGW/GCC toolchain to make it use UCRT instead of MSVCRT. We do that while building the toolchain for GStreamer's Cerbero build aggregator. We ship a prebuilt toolchain (
MSVC can link to both |
Due to lack of time, I am unable to work on this. So, if anyone else wants to have a go at this, feel free to. 😄 |
Any further works? Our project depends on it. Now I am unable to build GTK on Windows only because of this problem |
Found this because on my windows msvc target,
cargo install rustup-toolchain-install-master
finds msys2'sliblzma.a
, converts the name tolzma.lib
which is non-existant file, and tries to compile which gives error during linking.The text was updated successfully, but these errors were encountered: