git.iko.soy/typeable/nixpkgs
on master help sign in
glibc: disable pie hardening, limit to musl for now
commitdb0abe98bfa7adad39912edad44743de030f8300 authorWill Dietz <w@wdtz.org> dateWed 14 Nov 2018, 17:49 (8 years ago) parent6ebb2c3
1 file changed+4−1
pkgs/development/libraries/glibc/default.nix+4−1
pkgs/development/libraries/glibc/default.nix+4−1
@@ -35,7 +35,10 @@ callPackage ./common.nix { inherit stdenv; } {
3535 # The stackprotector and fortify hardening flags are autodetected by glibc
3636 # and enabled by default if supported. Setting it for every gcc invocation
3737 # does not work.
38− hardeningDisable = [ "stackprotector" "fortify" ];
38+ hardeningDisable = [ "stackprotector" "fortify" ]
39+ # XXX: Not actually musl-speciic but since only musl enables pie by default,
40+ # limit rebuilds by only disabling pie w/musl
41+ ++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";
3942
4043 # When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
4144 # any program we run, because the gcc will have been placed at a new