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:
Randy Eckenrode 2023-11-08 18:21:00 -05:00
parent 34b48d4af6
commit 3925a35d86
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -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}"