Closed
Description
It's always worked before. Turning back to compiling Rust after some period of other activities, and found out my binaries don't work anymore.
cargo new --bin bla
Created binary (application) `bla` project
cd /tmp/bla/
env RUSTFLAGS="-C target-feature=+crt-static" cargo build --target x86_64-unknown-linux-musl
Compiling bla v0.1.0 (file:///tmp/bla)
Finished dev [unoptimized + debuginfo] target(s) in 0.35 secs
Actual
file ./target/x86_64-unknown-linux-musl/debug/bla
./target/x86_64-unknown-linux-musl/debug/bla: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=8c6e0c77c39c031c76d95379bfe2593165b13a70, with debug_info, not stripped
Expected
A description of an executable statically linked to musl libc.
Meta
rustc 1.21.0-nightly (1d2a6df38 2017-08-03)
OS
Arch Linux with musl
package version 1.1.16-2
.