cvs: fix CFLAGS only on darwin
Fixes build for pkgsCross.x86_64-netbsd.netbsd.sys
This commit is contained in:
parent
c3094f371b
commit
92ec26ce8d
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
|||
"AR=${stdenv.cc.targetPrefix}ar"
|
||||
];
|
||||
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
env = lib.optionalAttrs (stdenv.isDarwin && stdenv.cc.isClang) {
|
||||
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue