about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2020-09-20 23:02:38 -0700
committerJosh Triplett <josh@joshtriplett.org>2020-10-04 22:12:08 -0700
commita3944a0abd134a0f2bcba656fcf9c487ed9fcbaf (patch)
treead7c1afc14ae33c5916f4bd31872ffd6217fdd22 /compiler/rustc_codegen_llvm/src
parent9d952cbe953468be20bbe4404ffc55cb39bfb96e (diff)
downloadrust-a3944a0abd134a0f2bcba656fcf9c487ed9fcbaf.tar.gz
rust-a3944a0abd134a0f2bcba656fcf9c487ed9fcbaf.zip
Support static linking with glibc and target-feature=+crt-static
With this change, it's possible to build on a linux-gnu target and pass
RUSTFLAGS='-C target-feature=+crt-static' or the equivalent via a
`.cargo/config.toml` file, and get a statically linked executable.

This requires libc 0.2.79, which adds support for static linking with
glibc.

Add `crt_static_respected` to the `linux_base` target spec.

Update `android_base` and `linux_musl_base` accordingly. Avoid enabling
crt_static_respected on Android platforms, since that hasn't been
tested.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions