sacc: fix Darwin build
CFLAGS is ignored in this case leading to failed build on Darwin. The change uses OSCFLAGS which is specifically used to pass OS-specific CFLAGS is this project, without overwriting the general CFLAGS specified in config.mk.
This commit is contained in:
parent
444cd38396
commit
fbf13b57e0
@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ ncurses libressl ];
|
||||
|
||||
CFLAGS = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"-D_DARWIN_C_SOURCE"
|
||||
makeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"OSCFLAGS=-D_DARWIN_C_SOURCE"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
Loading…
Reference in New Issue
Block a user