lftp: fix build with clang 16
The `configure` script fails to detect several C standard library functions due to not including the required headers. Suppressing the warning about implicit function declarations allows the checks to succeed and lftp build.
This commit is contained in:
parent
34b48d4af6
commit
3925a35d86
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
hardeningDisable = lib.optional stdenv.isDarwin "format";
|
||||
|
||||
env = lib.optionalAttrs stdenv.isDarwin {
|
||||
# Required to build with clang 16 or `configure` will fail to detect several standard functions.
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
"--with-openssl"
|
||||
"--with-readline=${readline.dev}"
|
||||
|
|
Loading…
Reference in a new issue