summary refs log tree commit diff
path: root/pkgs/development/libraries/kerberos
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2015-06-06 09:21:21 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-06-06 09:23:33 +0200
commit52184b53c05464fc9ccd3dd8200cb78c41ec8cc7 (patch)
treee7b394954c20d4eb29beb4bc7d0fa713db4d6ddc /pkgs/development/libraries/kerberos
parent7e04b7319c54bf0a4c0b6b55caca80a3b7434a87 (diff)
downloadnixlib-52184b53c05464fc9ccd3dd8200cb78c41ec8cc7.tar
nixlib-52184b53c05464fc9ccd3dd8200cb78c41ec8cc7.tar.gz
nixlib-52184b53c05464fc9ccd3dd8200cb78c41ec8cc7.tar.bz2
nixlib-52184b53c05464fc9ccd3dd8200cb78c41ec8cc7.tar.lz
nixlib-52184b53c05464fc9ccd3dd8200cb78c41ec8cc7.tar.xz
nixlib-52184b53c05464fc9ccd3dd8200cb78c41ec8cc7.tar.zst
nixlib-52184b53c05464fc9ccd3dd8200cb78c41ec8cc7.zip
Revert "Revert "Explicitly pass -pthread flag to fix the build after some updates""
This reverts commit 6cfea50ad14b3225226e64bd77925dc05a593689.

I think the reason for the revert was because of patch dependencies. We really
need this patch to fix heimdal build.

Or else:

  $ nix-build -A heimdal
  ...
  /tmp/nix-build-heimdal-1.5.3.drv-0/heimdal-1.5.3/base/.libs/libheimbase.so: undefined reference to `pthread_getspecific'
  /tmp/nix-build-heimdal-1.5.3.drv-0/heimdal-1.5.3/base/.libs/libheimbase.so: undefined reference to `pthread_key_create'
  /tmp/nix-build-heimdal-1.5.3.drv-0/heimdal-1.5.3/base/.libs/libheimbase.so: undefined reference to `pthread_setspecific'
  collect2: error: ld returned 1 exit status
  Makefile:509: recipe for target 'tc' failed
  make[2]: *** [tc] Error 1
Diffstat (limited to 'pkgs/development/libraries/kerberos')
-rw-r--r--pkgs/development/libraries/kerberos/heimdal.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/kerberos/heimdal.nix b/pkgs/development/libraries/kerberos/heimdal.nix
index aeea290bdb28..320e161d3da8 100644
--- a/pkgs/development/libraries/kerberos/heimdal.nix
+++ b/pkgs/development/libraries/kerberos/heimdal.nix
@@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
     "--without-x"
   ];
 
+  preConfigure = ''
+    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -pthread"
+  '';
+
   # We need to build hcrypt for applications like samba
   postBuild = ''
     (cd lib/hcrypto; make)