openblas: fix aarch64 build
This commit is contained in:
parent
13477c7f3b
commit
fa28a838f3
@ -127,7 +127,12 @@ stdenv.mkDerivation rec {
|
|||||||
CROSS = stdenv.hostPlatform != stdenv.buildPlatform;
|
CROSS = stdenv.hostPlatform != stdenv.buildPlatform;
|
||||||
HOSTCC = "cc";
|
HOSTCC = "cc";
|
||||||
# Makefile.system only checks defined status
|
# 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;
|
doCheck = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user