w3m: do not always link to RAND_egd for openssl

This fixes the build for libressl >= 2.3 as RAND_egd has been removed as
it is insecure.
This commit is contained in:
Robin Gloster
2015-12-23 22:10:01 +00:00
parent 99b1b464b4
commit f8ee267576
2 changed files with 12 additions and 1 deletions
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isSunOS "-lsocket -lnsl";
patches = [ ./glibc214.patch ]
patches = [ ./glibc214.patch ./RAND_egd.libressl.patch ]
# Patch for the newer unstable boehm-gc 7.2alpha. Not all platforms use that
# alpha. At the time of writing this, boehm-gc-7.1 is the last stable.
++ optional (boehmgc.name != "boehm-gc-7.1") [ ./newgc.patch ]