diff options
| author | bors <bors@rust-lang.org> | 2020-10-06 21:11:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-06 21:11:04 +0000 |
| commit | 98edd1fbf8a68977a2a7c1312eb1ebff80515a92 (patch) | |
| tree | 37642e103442b1779acb7e269a3e9248f1e58a05 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 9fdaeb393a16951f6fdef087193fef576e36aba6 (diff) | |
| parent | d9f29fd9ed558a5ef0462736ac3c13e3cc12b736 (diff) | |
| download | rust-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/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
