Unverified Commit 3925a35d authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

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.
parent 34b48d4a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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}"