From: Bruno Haible Date: Wed, 20 Jan 2021 20:44:36 +0000 (+0100) Subject: gc-random: Fix link error in tests. X-Git-Tag: v1.0~3132 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=65f62234c816cae5a0f42fc02c9edb94b5a2f72a;p=gnulib.git gc-random: Fix link error in tests. * modules/crypto/gc-random (Link): New section. * modules/crypto/gc-tests (Makefile.am): Link test-gc with $(LIB_GETRANDOM). --- diff --git a/ChangeLog b/ChangeLog index 0cedb2dc83..8c5a0a7579 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-01-20 Bruno Haible + + gc-random: Fix link error in tests. + * modules/crypto/gc-random (Link): New section. + * modules/crypto/gc-tests (Makefile.am): Link test-gc with + $(LIB_GETRANDOM). + 2021-01-20 Simon Josefsson gc-random: Replace implementation with call to getrandom. diff --git a/modules/crypto/gc-random b/modules/crypto/gc-random index 8a5ae462eb..0e1bd76e4e 100644 --- a/modules/crypto/gc-random +++ b/modules/crypto/gc-random @@ -15,6 +15,9 @@ Makefile.am: Include: "gc.h" +Link: +$(LIB_GETRANDOM) + License: LGPLv2+ diff --git a/modules/crypto/gc-tests b/modules/crypto/gc-tests index 7b153d18db..5a16ba3b3b 100644 --- a/modules/crypto/gc-tests +++ b/modules/crypto/gc-tests @@ -8,4 +8,4 @@ configure.ac: Makefile.am: TESTS += test-gc check_PROGRAMS += test-gc -test_gc_LDADD = $(LDADD) @LIB_CRYPTO@ +test_gc_LDADD = $(LDADD) @LIB_CRYPTO@ $(LIB_GETRANDOM)