Closed luser closed 3 years ago
This post seems related: https://users.rust-lang.org/t/static-cross-compiled-binaries-arent-really-static/6084
I think it can be force to output statically linked binary with RUSTFLAGS="-C target-feature=+crt-static"
.
Hi! I'm trying to use your Docker image to produce a statically-linked mipsel binary (for use on an Ubiquiti EdgeRouter). The output binary seems to wind up dynamically linking against libc and libgcc_s though:
The output above is from compiling this simple test project I have laying around for such purposes. Is this intended behavior or did I miss a step in the directions?
Thanks!