libjpeg_turbo: fix static build
This commit is contained in:
parent
cda852a528
commit
1aa45698d7
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, cmake, nasm, enableStatic ? false }:
|
{ stdenv, fetchurl, fetchpatch, cmake, nasm, enableStatic ? false, enableShared ? true }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DENABLE_STATIC=${if enableStatic then "1" else "0"}"
|
"-DENABLE_STATIC=${if enableStatic then "1" else "0"}"
|
||||||
|
"-DENABLE_SHARED=${if enableShared then "1" else "0"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
@ -216,6 +216,10 @@ in {
|
|||||||
libressl = super.libressl.override {
|
libressl = super.libressl.override {
|
||||||
buildShared = false;
|
buildShared = false;
|
||||||
};
|
};
|
||||||
|
libjpeg_turbo = super.libjpeg_turbo.override {
|
||||||
|
enableStatic = true;
|
||||||
|
enableShared = false;
|
||||||
|
};
|
||||||
|
|
||||||
darwin = super.darwin // {
|
darwin = super.darwin // {
|
||||||
libiconv = super.darwin.libiconv.override {
|
libiconv = super.darwin.libiconv.override {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user