mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
bash: Fix OpenBSD build
See added code comment for details
(cherry picked from commit 97550cd031
)
This commit is contained in:
parent
2c704bcbd8
commit
cee79b773a
@ -79,6 +79,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"
|
||||
|
Loading…
Reference in New Issue
Block a user