openblas: fix build on aarch64-linux (PR #193729)

This commit is contained in:
Weijia Wang 2022-09-30 17:38:04 +02:00 committed by Vladimír Čunát
parent fc5f95bde9
commit 428401133f
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -147,6 +147,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-F6cXPqQai4kA5zrsa8E0Q7dD9zZHlwZ+B16EOGNXoXs=";
};
postPatch = ''
# cc1: error: invalid feature modifier 'sve2' in '-march=armv8.5-a+sve+sve2+bf16'
substituteInPlace Makefile.arm64 --replace "+sve2+bf16" ""
'';
inherit blas64;
# Some hardening features are disabled due to sporadic failures in