Merge pull request #90107 from marsam/fix-nss-darwin
nss: fix build on darwin
This commit is contained in:
commit
9f648fbc95
|
@ -66,6 +66,7 @@ in stdenv.mkDerivation rec {
|
||||||
"USE_SYSTEM_ZLIB=1"
|
"USE_SYSTEM_ZLIB=1"
|
||||||
"NSS_USE_SYSTEM_SQLITE=1"
|
"NSS_USE_SYSTEM_SQLITE=1"
|
||||||
"NATIVE_CC=${buildPackages.stdenv.cc}/bin/cc"
|
"NATIVE_CC=${buildPackages.stdenv.cc}/bin/cc"
|
||||||
|
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
|
||||||
# Pass in CPU even if we're not cross compiling, because otherwise it tries to guess with
|
# Pass in CPU even if we're not cross compiling, because otherwise it tries to guess with
|
||||||
# uname, which can be wrong if e.g. we're compiling for aarch32 on aarch64
|
# uname, which can be wrong if e.g. we're compiling for aarch32 on aarch64
|
||||||
"OS_TEST=${cpu}"
|
"OS_TEST=${cpu}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user