Closed
Description
See build log.
It looks like name mangling doesn't work correctly when linking with a dynamic library which is also depends on libstd
.
The application structure is the following:
- Large
dylib
cratejava_bindings
, containing 400+ dependencies and is dynamically linked tolibstd.dylib
. exonum-java
binary application, depends onjava_bindings
and is dynamically linked tolibstd.dylib
.
The compilation works well on Rust 1.36.0, but doesn't work on 1.37.0 and nightly versions (such as rustc 1.39.0-nightly (c6e9c76c5 2019-09-04)
).
To reproduce:
git clone https://github.com/exonum/exonum-java-binding
cd exonum-java-binding/exonum-java-binding/core/rust/exonum-java
rustup default nightly
cargo build
Sorry for such heavy project, couldn't reproduce on an easier example.