Closed contradict closed 2 years ago
I would prefer cargo deb
to be smart enough to figure this out automatically. It needs to add a flag to sysroot, right? We already do this for pkg-config crate automatically.
To me more options = worse software. I do not want to add more options that do nothing except avoiding breakage.
OK, no problem.
Would you be interested in making a PR that adds this flag automatically?
Yeah, but I haven't figured out a strategy that looks reliable yet. If you have an idea I would be happy to try again.
We have debian_triple
function that we use to set PKG_CONFIG_PATH
. I presume the same would work for the lib dir, since Debian should have consistent naming for its sysroots.
When crosscompiling, it is often necessary to pass extra arguments to
dpkg_shlibs
to point to the library search path or exclude architecture-specific libraries. This adds a new optiondpkg-shlibdeps-args
to package.metadata.deb to allow these arguments.This should resolve #5