Closed Niels-Be closed 2 years ago
Paging @eggerk
I unfortunately don't have experience with cross-compiling Rust.
@kornelski Do you know how well this was working with the ldd
-based dependency searching?
I'm not sure if it worked with ldd. It might have if you had cross-ldd and appropriate sysroot?
Maybe it would be enough to strip platform suffix? (:arm64
, etc.)
When cross compiling finding dependencies will fail.
For example on Ubuntu 20.04 amd64 host and compiling for arm64:
The Debian archive is successfully created, but the Depends field in the control file is empty.
The libraries are available in
/usr/aarch64-linux-gnu/lib/
. When manually settingexport LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib/
the errors disappear and the Depends field is set. However according to the man page and the error message you should use -l argument for dpkg-shlibdeps.Edit: I just noticed event trough it works this way, it detects the wrong dependency:
libgcc1-arm64-cross
should not be there.Upon further investigation the following command will archive the desired result, however its not very generic: