diffutils: fix cross (#402249)

This commit is contained in:
Colin
2025-04-27 18:52:47 +00:00
committed by GitHub

View File

@@ -51,7 +51,10 @@ stdenv.mkDerivation rec {
# "pr" need not be on the PATH as a run-time dep, so we need to tell
# configure where it is. Covers the cross and native case alike.
lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr"
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "gl_cv_func_getopt_gnu=yes";
++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"gl_cv_func_getopt_gnu=yes"
"gl_cv_func_strcasecmp_works=yes"
];
# Test failure on QEMU only (#300550)
doCheck = !stdenv.buildPlatform.isRiscV64;