cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.49k stars 365 forks source link

Build mips-unknown-linux-musl from Debian instead of Ubuntu to have access to their packages #1332

Closed sarfata closed 7 months ago

sarfata commented 12 months ago

Ubuntu does not support mips, so we cannot add libraries with pre-build hooks like suggested in the documentation.

This changes the mipsel-unknown-linux-musl image to build from Debian stable.

You can now do:

pre-build = ["dpkg --add-architecture mipsel && apt-get update && apt-get install -y zlib1g-dev:mipsel && ln -s /usr/include/zlib.h /usr/local/mipsel-linux-muslsf/include"]

I realize this is not a benign change but it ended up being pretty small. I am curious if this is something you would consider merging - or if you would suggest a better approach.

sarfata commented 7 months ago

Sorry - Keep meaning to get back to this but have not found the time. Will close the PR for now and will re-open when I have applied the requested changes.