about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-08-12T13·34+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-08-12T13·34+0000
commit5c5ab2bc12472f63a33cc841dcdc57f1ed8ddea5 (patch)
tree76ac9f978d39e2d6005d25d266661ec3cf33f661 /configure.ac
parent5f9aad44caff5b2a2fb22fcf93d6ca129656984d (diff)
* Don't link against pthreads. This was added way back in r211
  because Berkeley DB needed it on some platforms, but we don't use
  BDB anymore.

  On FreeBSD, if you link against pthreads, then the main thread gets
  a 2 MB stack which cannot be overriden (it ignores "ulimit -s"):

    http://www.mail-archive.com/freebsd-hackers@freebsd.org/msg62445.html
  
  This is not enough for Nix.  For instance, the garbage collector can
  fail if there is a pathologically deep chain of references
  (http://hydra.nixos.org/build/556199).  2 MB is also not enough for
  many Nix expressions.
  
  Arguably the garbage collector shouldn't use recursion, because in
  NixOS unprivileged users can DOS the garbage collector by creating a
  sufficiently deeply nested chain of references.  But getting rid of
  recursion is a bit harder.

Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 0 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 867e2902986a..0b7f894480fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -256,9 +256,6 @@ AC_SUBST(sqlite_include)
 AC_SUBST(sqlite_bin)
 
 
-AC_CHECK_LIB(pthread, pthread_mutex_init)
-
-
 AC_ARG_ENABLE(init-state, AC_HELP_STRING([--disable-init-state],
   [do not initialise DB etc. in `make install']),
   init_state=$enableval, init_state=yes)