Merge pull request #72735 from nh2/libjpeg-turbo-static
libjpeg-turbo: Add flag to build static libraries as well
This commit is contained in:
commit
d20670fbfc
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, cmake, nasm }:
|
{ stdenv, fetchurl, cmake, nasm, enableStatic ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ cmake nasm ];
|
nativeBuildInputs = [ cmake nasm ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DENABLE_STATIC=0"
|
"-DENABLE_STATIC=${if enableStatic then "1" else "0"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user