about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-06 21:11:04 +0000
committerbors <bors@rust-lang.org>2020-10-06 21:11:04 +0000
commit98edd1fbf8a68977a2a7c1312eb1ebff80515a92 (patch)
tree37642e103442b1779acb7e269a3e9248f1e58a05 /compiler/rustc_codegen_llvm/src
parent9fdaeb393a16951f6fdef087193fef576e36aba6 (diff)
parentd9f29fd9ed558a5ef0462736ac3c13e3cc12b736 (diff)
downloadrust-98edd1fbf8a68977a2a7c1312eb1ebff80515a92.tar.gz
rust-98edd1fbf8a68977a2a7c1312eb1ebff80515a92.zip
Auto merge of #77386 - joshtriplett:static-glibc, r=petrochenkov
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.

Update to libc 0.2.78, 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.

Closes https://github.com/rust-lang/rust/issues/65447.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions