about summary refs log tree commit diff
path: root/pkgs/shells/bash/5.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-07-01 00:16:16 +0000
committerGitHub <noreply@github.com>2024-07-01 00:16:16 +0000
commite37016f618f13c9397ce2d6e7e58b9b602f82fe9 (patch)
tree764196fa81476f91a8c6fb0f139a28b29a11d81f /pkgs/shells/bash/5.nix
parent01da4c59cc4879540b7a5d73230475b4616a0dc8 (diff)
parentc00f20377be57a37df5cf7986198aab6051c0057 (diff)
Merge master into haskell-updates
Diffstat (limited to 'pkgs/shells/bash/5.nix')
-rw-r--r--pkgs/shells/bash/5.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/shells/bash/5.nix b/pkgs/shells/bash/5.nix
index 25798533113c8..a757834a4f2df 100644
--- a/pkgs/shells/bash/5.nix
+++ b/pkgs/shells/bash/5.nix
@@ -80,6 +80,10 @@ stdenv.mkDerivation rec {
     "bash_cv_job_control_missing=nomissing"
     "bash_cv_sys_named_pipes=nomissing"
     "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"}"
   ] ++ lib.optionals stdenv.hostPlatform.isCygwin [
     "--without-libintl-prefix"
     "--without-libiconv-prefix"