summary refs log tree commit diff
path: root/pkgs/development/libraries/vtk
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-05-09 12:23:21 +0200
committerLluís Batlle i Rossell <viric@viric.name>2013-05-09 12:36:22 +0200
commitf1e2c585b606859a16951f607a60bdb554601bab (patch)
tree4c0dbcaecc9d18fd804913f966728e48ccf7f41d /pkgs/development/libraries/vtk
parent646868b2e63425187f8ed9bd93d693bb7aa72e5b (diff)
Adding pcl. (Also updating flann, reworking vtk)
Diffstat (limited to 'pkgs/development/libraries/vtk')
-rw-r--r--pkgs/development/libraries/vtk/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/vtk/default.nix b/pkgs/development/libraries/vtk/default.nix
index 9e4816cab0af0..e8f42e9f7f5f1 100644
--- a/pkgs/development/libraries/vtk/default.nix
+++ b/pkgs/development/libraries/vtk/default.nix
@@ -16,12 +16,20 @@ stdenv.mkDerivation rec {
     url = "${meta.homepage}files/release/${majorVersion}/vtk-${version}.tar.gz";
     md5 = "a0363f78910f466ba8f1bd5ab5437cb9";
   };
+
   buildInputs = [ cmake mesa libX11 xproto libXt ]
     ++ optional useQt4 qt4;
 
-  cmakeFlags = optional useQt4
+  # Shared libraries don't work, because of rpath troubles with the current
+  # nixpkgs camke approach. It wants to call a binary at build time, just
+  # built and requiring one of the shared objects.
+  # At least, we use -fPIC for other packages to be able to use this in shared
+  # objects.
+  cmakeFlags = [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" ] ++ optional useQt4
     [ "-DVTK_USE_QT:BOOL=ON" ];
 
+  enableParallelBuilding = true;
+
   meta = {
     description = "Open source libraries for 3D computer graphics, image processing and visualization";
     homepage = http://www.vtk.org/;