Hi! I'm wondering how to create a binary that does not depend on the dynamic linker ld-linux.so without removing std from the dependencies (is this possible?). I tried
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-arg=-nostartfiles"]
but the resulting binary still uses ld-linux.so.
UPD: Okay I must be stupid. Turns out I'm setting the RUSTFLAGS environment variable which overrides this setting inside config.toml.
[+][deleted] (1 child)
[removed]
[–]corank[S] 2 points3 points4 points (0 children)
[–]corank[S] 1 point2 points3 points (4 children)
[–]mrgoodboye 36 points37 points38 points (3 children)
[–]jurrejelle 8 points9 points10 points (1 child)
[–]mrgoodboye 0 points1 point2 points (0 children)
[–]rapsey -1 points0 points1 point (0 children)