coreutils: fix cygwin build

This commit is contained in:
David McFarland
2026-01-02 12:55:15 -04:00
parent be8c8ea769
commit 6e49374819
+2 -6
View File
@@ -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: