openmpi: reenable stackprotector on aarch64-darwin

The original error that required disabling the stack protector on
aarch64-darwin has been fixed in GCC.
main
Theodore Ni 2 years ago
parent 1ed43116cd
commit 0706423b4b
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
  1. 10
      pkgs/development/libraries/openmpi/default.nix

@ -73,16 +73,6 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true;
# disable stackprotector on aarch64-darwin for now
# https://github.com/NixOS/nixpkgs/issues/127608
#
# build error:
#
# /private/tmp/nix-build-openmpi-4.1.1.drv-0/ccg7QqR8.s:13:15: error: index must be an integer in range [-256, 255].
# ldr x2, [x2, ___stack_chk_guard];momd
#
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
postInstall = ''
rm -f $out/lib/*.la
'';

Loading…
Cancel
Save