Use a hardened stdenv by default

This commit is contained in:
Franz Pletz
2016-01-30 16:36:57 +00:00
committed by Robin Gloster
parent c5f092c6a7
commit 954e9903ad
51 changed files with 131 additions and 9 deletions
@@ -213,6 +213,10 @@ stdenv.mkDerivation ({
preBuild = "unset NIX_DONT_SET_RPATH";
}
// stdenv.lib.optionalAttrs (name == "glibc-locales") {
noHardening_stackprotector = true;
}
// stdenv.lib.optionalAttrs (hurdHeaders != null) {
# Work around the fact that the configure snippet that looks for
# <hurd/version.h> does not honor `--with-headers=$sysheaders' and that
@@ -25,6 +25,8 @@ in
builder = ./builder.sh;
noHardening_all = true;
# When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
# any program we run, because the gcc will have been placed at a new
# store path than that determined when built (as a source for the