diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-10 13:49:36 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-11-13 07:03:31 -0600 |
commit | 76c956be5cecfc73423d767d9243d159d7b83508 (patch) | |
tree | 0c74e6fefa7959c7a90b277951d02b780628861f /pkgs/development/compilers/gcc/6/default.nix | |
parent | 08d98b2e3814e5c6b4832f335897d482db6d361d (diff) | |
download | nixpkgs-76c956be5cecfc73423d767d9243d159d7b83508.tar nixpkgs-76c956be5cecfc73423d767d9243d159d7b83508.tar.gz nixpkgs-76c956be5cecfc73423d767d9243d159d7b83508.tar.bz2 nixpkgs-76c956be5cecfc73423d767d9243d159d7b83508.tar.lz nixpkgs-76c956be5cecfc73423d767d9243d159d7b83508.tar.xz nixpkgs-76c956be5cecfc73423d767d9243d159d7b83508.tar.zst nixpkgs-76c956be5cecfc73423d767d9243d159d7b83508.zip |
treewide: disable pie in more places
Some packages don’t work correctly with pie. Here I disable it for: - busybox - linux kernel - kexectools I also get rid of the Musl conditional for disabling pie in GCC and Binutils. Some day we might want to enable PIE without Musl and it will be useful to have the *just* work with our compiler and linkers.
Diffstat (limited to 'pkgs/development/compilers/gcc/6/default.nix')
-rw-r--r-- | pkgs/development/compilers/gcc/6/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix index 372a7065f2d..ff48e485a9a 100644 --- a/pkgs/development/compilers/gcc/6/default.nix +++ b/pkgs/development/compilers/gcc/6/default.nix @@ -178,7 +178,7 @@ stdenv.mkDerivation ({ libc_dev = stdenv.cc.libc_dev; - hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie"; + hardeningDisable = [ "format" "pie" ]; # This should kill all the stdinc frameworks that gcc and friends like to # insert into default search paths. |