mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
libjpeg-turbo: Add flag to build static libraries as well
This commit is contained in:
parent
dcd89d2c80
commit
83dbd38821
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, cmake, nasm }:
|
||||
{ stdenv, fetchurl, cmake, nasm, enableStatic ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ cmake nasm ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DENABLE_STATIC=0"
|
||||
"-DENABLE_STATIC=${if enableStatic then "1" else "0"}"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
Loading…
Reference in New Issue
Block a user