You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this fails to link, claiming there are missing symbols one would expect from zlib. libpng depends on zlib, therefore -lpng should appear before-lz. I'm not exactly sure where this issue is originating from, but if you can investigate, that would be grand.
The text was updated successfully, but these errors were encountered:
@Be-ing
rustc does preserve the order of -l arguments (*), that's why the order preserving -l link-arg is using -l in the first place.
(*) Except for dynamic libraries, but that's something I want to fix (rust-lang/rust#102832 (comment)). Libraries with unspecified kind are considered dynamic. UPD: And relative order between dynamic libraries is also preserved.
Take for example a Rust-SDL2 setup with vcpkg, which resolves some dependencies via pkgconfig-rs. Towards the end, we see:
However, this fails to link, claiming there are missing symbols one would expect from zlib. libpng depends on zlib, therefore
-lpng
should appear before-lz
. I'm not exactly sure where this issue is originating from, but if you can investigate, that would be grand.The text was updated successfully, but these errors were encountered: