openafs: fix build against linux_hardened

See https://hydra.nixos.org/build/86750041
and https://hydra.nixos.org/build/86749971
This commit is contained in:
Joachim Fasting 2019-01-06 14:05:51 +01:00
parent e6538caa48
commit 4bb0a719cf
No known key found for this signature in database
GPG key ID: 5C204DF675C90294
2 changed files with 6 additions and 0 deletions

View file

@ -15,6 +15,9 @@ in stdenv.mkDerivation rec {
hardeningDisable = [ "pic" ];
# The RANDSTRUCT gcc plugin rewrites structs using designated initializers
NIX_CFLAGS_COMPILE = [ "-Wno-error=designated-init" ];
configureFlags = [
"--with-linux-kernel-build=${kernelBuildDir}"
"--sysconfdir=/etc"

View file

@ -18,6 +18,9 @@ in stdenv.mkDerivation rec {
hardeningDisable = [ "pic" ];
# The RANDSTRUCT gcc plugin rewrites structs using designated initializers
NIX_CFLAGS_COMPILE = [ "-Wno-error=designated-init" ];
configureFlags = [
"--with-linux-kernel-build=${kernelBuildDir}"
"--sysconfdir=/etc"