openblas: fix aarch64 build

This commit is contained in:
Markus Kowalewski
2019-03-31 12:19:41 +02:00
parent 13477c7f3b
commit fa28a838f3
@@ -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;