* 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.
			
			
This commit is contained in:
		
							parent
							
								
									5f9aad44ca
								
							
						
					
					
						commit
						5c5ab2bc12
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue