nixpkgs/pkgs/stdenv/generic
Samuel Dionne-Riel 76552e95cc
stdenv: Fix regression on ARM+static when enabling hardening (#115363)
4e9dc46dea 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
..
builder.sh stdenvs: Distinguish between extraBuildInputs and extraNativeBuildInputs 2017-08-18 12:02:13 -04:00
check-meta.nix stdenv/check-meta: change to allowlist and blocklist (#114127) 2021-02-23 10:25:18 -05:00
default-builder.sh
default.nix stdenv/generic: recommend lib instead of pkgs.lib in place of stdenv.lib 2021-02-11 11:34:06 +07:00
make-derivation.nix stdenv: Fix regression on ARM+static when enabling hardening (#115363) 2021-03-23 18:45:48 -04:00
setup.sh stdenv: mute errors when failing to write env-vars 2021-01-05 22:23:37 +01:00