forked from mirrors/nixpkgs
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:
parent
e6538caa48
commit
4bb0a719cf
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue