Merge #58589: openblas: fix aarch64 build

This commit is contained in:
Vladimír Čunát 2019-04-07 16:58:42 +02:00
commit e1f55599cc
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

@ -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;