_9base: fix build on x86_64-darwin

This commit is contained in:
Weijia Wang 2024-01-21 19:50:46 +01:00
parent 27e48d2c55
commit b07ef31a8b

View File

@ -47,6 +47,9 @@ stdenv.mkDerivation {
# hide really common warning that floods the logs:
# warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
"-D_DEFAULT_SOURCE"
] ++ lib.optionals stdenv.cc.isClang [
# error: call to undeclared function 'p9mbtowc'; ISO C99 and later do not support implicit function declarations
"-Wno-error=implicit-function-declaration"
];
LDFLAGS = lib.optionalString enableStatic "-static";
makeFlags = [