Use a hardened stdenv by default
This commit is contained in:
committed by
Robin Gloster
parent
c5f092c6a7
commit
954e9903ad
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user