From 2c89ed63ee4b04ce5f2346ef59e7e98d3ac709e0 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 7 Sep 2016 13:28:41 +0200 Subject: hardware/rtl8192cu: Disable some hardening flags These flags are applied via the kernel config, so if we add it using our compiler wrapper the kernel build process is unable to detect these flags and the build will fail. Signed-off-by: aszlig --- modules/hardware/rtl8192cu/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hardware/rtl8192cu/default.nix b/modules/hardware/rtl8192cu/default.nix index 2acfa0ec..0dfb7d53 100644 --- a/modules/hardware/rtl8192cu/default.nix +++ b/modules/hardware/rtl8192cu/default.nix @@ -18,6 +18,8 @@ let patches = lib.optional (lib.versionAtLeast kernel.version "4.0") ./kernel-4.x.patch; + hardeningDisable = [ "stackprotector" "pic" ]; + postPatch = '' substituteInPlace Makefile --replace /sbin/depmod : ''; -- cgit 1.4.1