about summary refs log tree commit diff
path: root/pkgs/development/libraries/clucene-core
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-12-10 22:47:27 +0000
committerRobin Gloster <mail@glob.in>2018-12-11 18:13:21 +0100
commitb6e73918a38f18da65e9b7e6fd085362d1c38cb3 (patch)
tree6bb27cc547cb9a73921d89dea88e294ee07b193d /pkgs/development/libraries/clucene-core
parent68d5071e3d7593116810db503b9b1921d6f78702 (diff)
clucene: fix cross-build
Diffstat (limited to 'pkgs/development/libraries/clucene-core')
-rw-r--r--pkgs/development/libraries/clucene-core/2.x.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/clucene-core/2.x.nix b/pkgs/development/libraries/clucene-core/2.x.nix
index 004c01a5b69e2..6eb310550bcd7 100644
--- a/pkgs/development/libraries/clucene-core/2.x.nix
+++ b/pkgs/development/libraries/clucene-core/2.x.nix
@@ -16,6 +16,14 @@ stdenv.mkDerivation rec {
     "-DBUILD_CONTRIBS=ON"
     "-DBUILD_CONTRIBS_LIB=ON"
     "-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
+  ] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
+    "-D_CL_HAVE_GCC_ATOMIC_FUNCTIONS=0"
+    "-D_CL_HAVE_NAMESPACES_EXITCODE=0"
+    "-D_CL_HAVE_NO_SNPRINTF_BUG_EXITCODE=0"
+    "-D_CL_HAVE_NO_SNWPRINTF_BUG_EXITCODE=0"
+    "-D_CL_HAVE_TRY_BLOCKS_EXITCODE=0"
+    "-D_CL_HAVE_PTHREAD_MUTEX_RECURSIVE=0"
+    "-DLUCENE_STATIC_CONSTANT_SYNTAX_EXITCODE=0"
   ];
 
   patches = # From debian