openblas: fix aarch64 build

This commit is contained in:
Markus Kowalewski 2019-03-30 17:55:24 +01:00
parent 13477c7f3b
commit fa28a838f3
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB

View File

@ -127,7 +127,12 @@ stdenv.mkDerivation rec {
CROSS = stdenv.hostPlatform != stdenv.buildPlatform;
HOSTCC = "cc";
# Makefile.system only checks defined status
NO_BINARY_MODE = toString (stdenv.hostPlatform != stdenv.buildPlatform);
# This seems to be a bug in the openblas Makefile:
# on x86_64 it expects NO_BINARY_MODE=
# but on aarch64 it expects NO_BINARY_MODE=0
NO_BINARY_MODE = if stdenv.isx86_64
then toString (stdenv.hostPlatform != stdenv.buildPlatform)
else stdenv.hostPlatform != stdenv.buildPlatform;
});
doCheck = true;