From 28bfd386f2e8046c7b1cfb4b796ea1347e6a42b0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 26 Oct 2019 06:08:45 +0000 Subject: Switch getrandom sysdep back to choose cl --- configure | 4 ++-- doc/crosscompile.html | 5 +---- src/sysdeps/trygetrandom.c | 6 ++++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/configure b/configure index d49390f..189a047 100755 --- a/configure +++ b/configure @@ -45,7 +45,7 @@ $package options: Sysdeps autodetection override: --with-sysdep-K=V assume sysdep K has the value V [autodetected] -List of mandatory K for cross-compiling: devurandom (V=yes|no), getrandom (V=yes|no) +List of mandatory K for cross-compiling: devurandom (V=yes|no) EOF exit 0 @@ -625,11 +625,11 @@ choose cl itimer 'setitimer()' choose cl namespaces 'namespaces' choose cl nsgetparent 'NS_GET_PARENT' choose cl explicit_bzero 'explicit_bzero()' +choose cl getrandom 'getrandom()' # And here are the evil irreducible sysdeps. choose clr devurandom '/dev/urandom' -choose clr getrandom 'getrandom()' rm -f "$tmps" echo "Creating config.mak..." diff --git a/doc/crosscompile.html b/doc/crosscompile.html index 73fee33..6ff8bb1 100644 --- a/doc/crosscompile.html +++ b/doc/crosscompile.html @@ -83,16 +83,13 @@ the time yes or no.

At all times, ./configure --help provides the list of sysdeps you need to provide a --with-sysdep-* option for. As of -skalibs-2.9.1.0, there are two sysdeps in this case: +skalibs-2.9.1.0, there is only one sysdep in this case:

diff --git a/src/sysdeps/trygetrandom.c b/src/sysdeps/trygetrandom.c index cc2426b..a9f03d1 100644 --- a/src/sysdeps/trygetrandom.c +++ b/src/sysdeps/trygetrandom.c @@ -1,5 +1,11 @@ /* ISC license. */ +#include + +#ifdef __stub_getrandom +#error getrandom() appears to be a stub function, we won't use it. +#endif + #include int main (void) -- cgit v1.2.3