about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2022-09-29 15:10:52 -0400
committerGitHub <noreply@github.com>2022-09-29 15:10:52 -0400
commit4dbfb550f0b67a5c3fc57910d2f6ffead4462526 (patch)
treea9596601ef18fbde54057da7ca4c9a0251cd6ad9 /pkgs/shells
parent419f5ba2343e8fdfb3171ada263b0db5eb105fb1 (diff)
parentdb31db7e84a0546882e92a4c4d47de286d2a476e (diff)
Merge pull request #192630 from cidkidnix/fix-bash-android
bash: fix android cross-compile
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/bash/5.1.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/shells/bash/5.1.nix b/pkgs/shells/bash/5.1.nix
index 7cd7fb6905cb2..390dab12c9476 100644
--- a/pkgs/shells/bash/5.1.nix
+++ b/pkgs/shells/bash/5.1.nix
@@ -33,7 +33,11 @@ stdenv.mkDerivation rec {
     sha256 = "1alv68wplnfdm6mh39hm57060xgssb9vqca4yr1cyva0c342n0fc";
   };
 
-  hardeningDisable = [ "format" ];
+  hardeningDisable = [ "format" ]
+  # bionic libc is super weird and has issues with fortify outside of its own libc, check this comment:
+  # https://github.com/NixOS/nixpkgs/pull/192630#discussion_r978985593
+  # or you can check libc/include/sys/cdefs.h in bionic source code
+  ++ optional (stdenv.hostPlatform.libc == "bionic") "fortify";
 
   outputs = [ "out" "dev" "man" "doc" "info" ];