mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
cvs: fix CFLAGS only on darwin
Fixes build for pkgsCross.x86_64-netbsd.netbsd.sys
This commit is contained in:
parent
c3094f371b
commit
92ec26ce8d
@ -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 New Issue
Block a user