Diff

configure @ 8448:f516a52f19e8

util.crand: Make it possible to use arc4random on Linux (needs libbsd)
author Kim Alvefur <zash@zash.se>
date Sun, 03 Dec 2017 15:21:12 +0100
parent 8284:22460456c3a3
child 9417:f5a471303e6a
line wrap: on
line diff
--- a/configure	Sun Dec 03 15:03:25 2017 +0100
+++ b/configure	Sun Dec 03 15:21:12 2017 +0100
@@ -528,6 +528,8 @@
 
 if [ "$PRNG" = "OPENSSL" ]; then
    PRNGLIBS=$OPENSSL_LIBS
+elif [ "$PRNG" = "ARC4RANDOM" -a "$(uname)" = "Linux" ]; then
+   PRNGLIBS="-lbsd"
 fi
 
 # Write config