Unconditionally compile itk with shared libs
This commit is contained in:
parent
645d54c35d
commit
d1e88c4625
@ -1,15 +1,16 @@
|
|||||||
{stdenv, fetchurl, cmake, libX11, libuuid, xz, sharedLibs ? false}:
|
{stdenv, fetchurl, cmake, libX11, libuuid, xz}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "itk${stdenv.lib.optionalString sharedLibs ''-shared''}-4.0.0";
|
name = "itk-4.0.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/itk/InsightToolkit-4.0.0.tar.xz;
|
url = mirror://sourceforge/itk/InsightToolkit-4.0.0.tar.xz;
|
||||||
sha256 = "05z49sw612cbyiaghcsda0xylrkf06jh81ql79si5632w1hpgbd9";
|
sha256 = "05z49sw612cbyiaghcsda0xylrkf06jh81ql79si5632w1hpgbd9";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = [ "-DBUILD_TESTING=OFF" "-DBUILD_EXAMPLES=OFF" ]
|
cmakeFlags = [
|
||||||
++ stdenv.lib.optional sharedLibs [
|
"-DBUILD_TESTING=OFF"
|
||||||
|
"-DBUILD_EXAMPLES=OFF"
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
"-DCMAKE_CXX_FLAGS=-fPIC"
|
"-DCMAKE_CXX_FLAGS=-fPIC"
|
||||||
];
|
];
|
||||||
|
@ -4569,8 +4569,6 @@ let
|
|||||||
|
|
||||||
itk = callPackage ../development/libraries/itk { };
|
itk = callPackage ../development/libraries/itk { };
|
||||||
|
|
||||||
itkShared = itk.override { sharedLibs = true; };
|
|
||||||
|
|
||||||
jamp = builderDefsPackage ../games/jamp {
|
jamp = builderDefsPackage ../games/jamp {
|
||||||
inherit mesa SDL SDL_image SDL_mixer;
|
inherit mesa SDL SDL_image SDL_mixer;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user