Unverified Commit 63688d93 authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

coreutils: fix cygwin build (#476294)

parents eaefdb06 6e493748
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -148,11 +148,6 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = [
    perl
    xz.bin
  ]
  ++ optionals stdenv.hostPlatform.isCygwin [
    # due to patch
    autoreconfHook
    texinfo
  ];

  buildInputs =
@@ -222,7 +217,8 @@ stdenv.mkDerivation rec {
    ++ optional stdenv.hostPlatform.isAndroid "-D__USE_FORTIFY_LEVEL=0"
    # gnulib does not consider Clang-specific warnings to be bugs:
    # https://lists.gnu.org/r/bug-gnulib/2025-06/msg00325.html
    ++ optional stdenv.cc.isClang "-Wno-error=format-security"
    # TODO: find out why these are happening on cygwin, which is gcc
    ++ optional (stdenv.cc.isClang || stdenv.hostPlatform.isCygwin) "-Wno-error=format-security"
  );

  # Works around a bug with 8.26: