util-linux: use meson to build
Compiles faster, is PIC by default, and does not have pkgconfig files with wrong paths. Add various fixes to it as it seems cross compilation was never tested. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Christian Lamparter
parent
d93aae1d67
commit
28cec43807
14
package/utils/util-linux/patches/210-use-urandom.patch
Normal file
14
package/utils/util-linux/patches/210-use-urandom.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- a/lib/randutils.c
|
||||
+++ b/lib/randutils.c
|
||||
@@ -26,6 +26,11 @@
|
||||
#define THREAD_LOCAL static
|
||||
#endif
|
||||
|
||||
+/* force /dev/urandom to avoid hanging on early boot */
|
||||
+#undef HAVE_GETRANDOM
|
||||
+#undef SYS_getrandom
|
||||
+#undef __NR_getrandom
|
||||
+
|
||||
#ifdef HAVE_GETRANDOM
|
||||
# include <sys/random.h>
|
||||
#elif defined (__linux__)
|
||||
Reference in New Issue
Block a user