[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build: link in $(LIB_GETRANDOM) from gnulib
From: |
Mike Frysinger |
Subject: |
[PATCH] build: link in $(LIB_GETRANDOM) from gnulib |
Date: |
Fri, 12 Jan 2024 00:46:05 -0500 |
On Windows builds, gnulib might set LIB_GETRANDOM to -lbcrypt and then
use that API. But since we don't include $(LIB_GETRANDOM) when linking,
we fail. On Linux systems, this is empty as getrandom APIs are part of
the main C library already.
---
src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index cd019daf8489..b14ad6314da0 100644
--- 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)
+ $(LIB_GETRANDOM) $(LIB_CLOCK_GETTIME) $(LIBTHREAD)
install-exec-hook:
cd $(DESTDIR)$(bindir) && rm -f rnano && $(LN_S) nano rnano
--
2.43.0
- [PATCH] build: link in $(LIB_GETRANDOM) from gnulib,
Mike Frysinger <=