commit c59e9d228e8daff52da7d0c5f4c27082ee46f139
parent d8848df14f52375eef3cd5e4fc77ada7aa2d92bb
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri, 12 Jan 2024 00:48:54 -0500
build: link in $(GETRANDOM_LIB) from gnulib
On Windows builds, gnulib might set GETRANDOM_LIB to -lbcrypt and then
use that API. But since we don't include $(GETRANDOM_LIB) when linking,
we fail. On Linux systems, this is empty as getrandom APIs are part of
the main C library already. This is also what the link requirements say
in gnulib's modules/getrandom spec.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
@@ -43,7 +43,7 @@ nano_SOURCES = \
winio.c
nano_LDADD = @LIBINTL@ $(top_builddir)/lib/libgnu.a \
- $(LIB_CLOCK_GETTIME) $(LIBTHREAD)
+ $(GETRANDOM_LIB) $(LIB_CLOCK_GETTIME) $(LIBTHREAD)
install-exec-hook:
cd $(DESTDIR)$(bindir) && rm -f rnano && $(LN_S) nano rnano