openblas: Add enableStatic flag

This commit is contained in:
Niklas Hambüchen 2019-05-17 04:45:42 +02:00 committed by Frederik Rietdijk
parent 43fda1c96d
commit 8d5864eb47

View File

@ -7,6 +7,7 @@
# Select a specific optimization target (other than the default) # Select a specific optimization target (other than the default)
# 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
}: }:
with stdenv.lib; with stdenv.lib;
@ -124,7 +125,7 @@ stdenv.mkDerivation rec {
PREFIX = placeholder "out"; PREFIX = placeholder "out";
NUM_THREADS = 64; NUM_THREADS = 64;
INTERFACE64 = blas64; INTERFACE64 = blas64;
NO_STATIC = true; NO_STATIC = !enableStatic;
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