openblas: fix static musl build
This commit is contained in:
parent
dd5fd3b1ff
commit
867552957f
@ -8,6 +8,7 @@
|
|||||||
# See https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt
|
# See https://github.com/xianyi/OpenBLAS/blob/develop/TargetList.txt
|
||||||
, target ? null
|
, target ? null
|
||||||
, enableStatic ? false
|
, enableStatic ? false
|
||||||
|
, enableShared ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -60,7 +61,7 @@ let
|
|||||||
TARGET = setTarget "ATHLON";
|
TARGET = setTarget "ATHLON";
|
||||||
DYNAMIC_ARCH = true;
|
DYNAMIC_ARCH = true;
|
||||||
NO_AVX512 = true;
|
NO_AVX512 = true;
|
||||||
USE_OPENMP = true;
|
USE_OPENMP = !stdenv.hostPlatform.isMusl;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
@ -129,6 +130,7 @@ stdenv.mkDerivation rec {
|
|||||||
NUM_THREADS = 64;
|
NUM_THREADS = 64;
|
||||||
INTERFACE64 = blas64;
|
INTERFACE64 = blas64;
|
||||||
NO_STATIC = !enableStatic;
|
NO_STATIC = !enableStatic;
|
||||||
|
NO_SHARED = !enableShared;
|
||||||
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
|
||||||
|
@ -152,7 +152,10 @@ in {
|
|||||||
optipng = super.optipng.override {
|
optipng = super.optipng.override {
|
||||||
static = true;
|
static = true;
|
||||||
};
|
};
|
||||||
openblas = super.openblas.override { enableStatic = true; };
|
openblas = super.openblas.override {
|
||||||
|
enableStatic = true;
|
||||||
|
enableShared = false;
|
||||||
|
};
|
||||||
nix = super.nix.override { withAWS = false; };
|
nix = super.nix.override { withAWS = false; };
|
||||||
# openssl 1.1 doesn't compile
|
# openssl 1.1 doesn't compile
|
||||||
openssl = super.openssl_1_0_2.override {
|
openssl = super.openssl_1_0_2.override {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user