From b7cbb4da11fb409d597df473d480c51fa0d11536 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 21 Feb 2013 13:59:58 +0100 Subject: [PATCH] chromium: Force -fno-stack-protector for v25. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So, this is our sledgehammer, forcing -fno-stack-protector for every gcc/g++ in the univ... Chromium build. Of course this is a somewhat nasty fix and there should be a real fix somewhere in Chromium 26. But instead of wandering around and picking cherries, we now go out for the slaughter until someone brings us the damn cherries because we are FUURRRIII... no well... time for sleep :-) May the mighty Hydra be with us! Thanks to our great fellow @cillianderoiste, for joining the battle with his almighty battle axe, crushing and burning some CPUs. Signed-off-by: aszlig Tested-by: Cillian de RĂ³iste --- pkgs/applications/networking/browsers/chromium/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index c7414eec6715..8578514f968c 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -223,4 +223,6 @@ in stdenv.mkDerivation rec { license = licenses.bsd3; platforms = platforms.linux; }; +} // optionalAttrs only25 { + NIX_CFLAGS_COMPILE = "-fno-stack-protector"; }