From 2b6bf950e71b6537c81597bcc102a339424270a2 Mon Sep 17 00:00:00 2001 From: cidkidnix Date: Fri, 23 Sep 2022 09:47:53 -0500 Subject: [PATCH] bash: fix android cross-compile --- pkgs/shells/bash/5.1.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/shells/bash/5.1.nix b/pkgs/shells/bash/5.1.nix index 7cd7fb6905cb..c0b7d87e71c8 100644 --- a/pkgs/shells/bash/5.1.nix +++ b/pkgs/shells/bash/5.1.nix @@ -33,7 +33,9 @@ stdenv.mkDerivation rec { sha256 = "1alv68wplnfdm6mh39hm57060xgssb9vqca4yr1cyva0c342n0fc"; }; - hardeningDisable = [ "format" ]; + hardeningDisable = [ "format" ] + # https://android.googlesource.com/platform/bionic/+/1342527b5791a53bf441322ab9adf41c8e060a1e%5E2..1342527b5791a53bf441322ab9adf41c8e060a1e/ + ++ optional (stdenv.hostPlatform.useAndroidPrebuilt or false) "fortify"; outputs = [ "out" "dev" "man" "doc" "info" ];