diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-01 16:08:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-01 16:08:01 +0100 |
| commit | ce6c1484f8963cee8b793f010ad84ef7e94d2b91 (patch) | |
| tree | 9722a558d198b82f956432d1bf3992ceed5176f2 /library/std/src/sys/unix/process/process_unix.rs | |
| parent | 547f2ba06bc4aa93a375c54e1af3fd1216eeaf62 (diff) | |
| parent | 6a88311373bf18b272aed98d3032852cfcec4455 (diff) | |
| download | rust-ce6c1484f8963cee8b793f010ad84ef7e94d2b91.tar.gz rust-ce6c1484f8963cee8b793f010ad84ef7e94d2b91.zip | |
Rollup merge of #86374 - bossmc:enable-static-pie-for-gnu, r=nagisa
Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu` Modern `gcc` versions support `-static-pie`, and `rustc` will already fall-back to `-static` if the local `gcc` is too old (and hence this change is optimistic rather than absolute). This brings the `-musl` and `-gnu` targets to feature compatibility (albeit with different default settings). Of note a `-static` or `-static-pie` binary based on glibc that uses NSS-backed functions (`gethostbyname` or `getpwuid` etc.) need to have access to the `libnss_X.so.2` libraries and any of their dynamic dependencies. I wasn't sure about the `# only`/`# ignore` changes (I've not got a `gnux32` toolchain to test with hence not also enabling `-static-pie` there).
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
