nixpkgs/pkgs/stdenv
Samuel Dionne-Riel 76552e95cc
stdenv: Fix regression on ARM+static when enabling hardening (#115363)
4e9dc46dea0ef8cf15c567fa863796bb23099d0b re-enabled hardening for Musl,
which is good.

Though static builds for ARM fail in various ways

 - cross armv7l static does not build
 - cross aarch64 static produces segfaulting dynamically linked binaries
 - native aarch64 static also produces segfaulting dynamically linked binaries

It seems that for native x86_64-linux, static builds are fine though.

This works around the issue by removing PIE from the hardening flags,
keeping all other hardening flags. This is an improvement (I think) from
before 4e9dc46d.

Fixes #114953
2021-03-23 18:45:48 -04:00
..
cross llvmPackages: select version by targetPlatform 2021-01-11 11:10:53 +01:00
custom stdenv: allow custom stdenv to take crossOverlays 2019-01-07 20:53:10 -06:00
cygwin treewide: Make still dont* Variables are optional in most cases 2019-11-01 14:44:44 -04:00
darwin darwin/make-bootstrap-tools: avoid brotli dependency 2021-03-18 12:30:16 -07:00
freebsd stdenv: Improve/fix FreeBSD support 2021-02-07 15:24:16 +00:00
generic stdenv: Fix regression on ARM+static when enabling hardening (#115363) 2021-03-23 18:45:48 -04:00
linux Merge pull request #111345 from r-burns/ppc64-big-endian 2021-01-30 16:26:06 -05:00
native stdenv/native: provide patchelf on linux 2020-08-25 17:54:27 -05:00
nix stdenv: implement crossOverlays 2018-12-04 21:06:46 -06:00
adapters.nix treewide: stdenv.lib -> lib 2021-01-27 13:08:40 +07:00
booter.nix pkgs/stdenv/booter.nix: Add comment explaining hasCC trickery 2019-12-30 18:09:45 -05:00
common-path.nix
default.nix stdenv: add powerpc64-linux 2021-01-30 12:34:30 -08:00