bash: Fix build on FreeBSD cross

This commit is contained in:
Audrey Dutcher 2024-05-14 15:12:16 -07:00 committed by Alyssa Ross
parent 80ef1ab3ce
commit fc246ead19

View File

@ -88,6 +88,10 @@ stdenv.mkDerivation rec {
"bash_cv_termcap_lib=libncurses"
] ++ lib.optionals (stdenv.hostPlatform.libc == "musl") [
"--disable-nls"
] ++ lib.optionals stdenv.hostPlatform.isFreeBSD [
# /dev/fd is optional on FreeBSD. we need it to work when built on a system
# with it and transferred to a system without it! This includes linux cross.
"bash_cv_dev_fd=absent"
];
strictDeps = true;