From 928b4da58e6327dea87737aa6fdc8442457c7a2f Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Mon, 2 Sep 2024 21:06:08 -0700 Subject: [PATCH] bash: add FreeBSD to static cross compilation special case --- pkgs/shells/bash/5.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/bash/5.nix b/pkgs/shells/bash/5.nix index 91da1f05a528..1e1fe340dcda 100644 --- a/pkgs/shells/bash/5.nix +++ b/pkgs/shells/bash/5.nix @@ -79,8 +79,8 @@ stdenv.mkDerivation rec { "bash_cv_getcwd_malloc=yes" # This check cannot be performed when cross compiling. The "yes" # default is fine for static linking on Linux (weak symbols?) but - # not with OpenBSD, when it does clash with the regular `getenv`. - "bash_cv_getenv_redef=${if !(with stdenv.hostPlatform; isStatic && isOpenBSD) then "yes" else "no"}" + # not with BSDs, when it does clash with the regular `getenv`. + "bash_cv_getenv_redef=${if !(with stdenv.hostPlatform; isStatic && (isOpenBSD || isFreeBSD)) then "yes" else "no"}" ] ++ lib.optionals stdenv.hostPlatform.isCygwin [ "--without-libintl-prefix" "--without-libiconv-prefix"