So I'm working on learning both rust and how to use the piston game engine and I wanted to show my friend what I had done with out him needing to install the rust toolchain.
Fortunately we are both running linux and I ran cargo build --release
and sent him the compiled binary file and the other assets he needed to run the program.
The issue that we then ran into is that he has an older version of glibc. Below is the message from stderr.
./hello_world: /lib/x86_64-linux/libc.so.6: version `GLIBC_2.32` not found (
required by ./hello_world)
I've tried using compiler flags when in my main.rs
to force static linking during compilation, but I think the other crates are not statically linking their dependencies.
Is there a way to conveniently statically link all required external libraries so that I can create an easily distributable binary?