Skip to content

Commit 932c7c7

Browse files
committed
make-binaries: Enable old urandom support
libexpat 2.8.2 has disabled this by default in 1257 CMake|Autotools: Stop using /dev/urandom by default libexpat/libexpat@2ca41f1 The recommended alternatives (arc4random, getentropy, getrandom ...) do not work in make-binaries right now. As a temporary workaround, let's enable urandom support.
1 parent 22805df commit 932c7c7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/make-binaries

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,9 @@ build_deps()
595595

596596
info "Building Expat $expat_vsn for $arch-$libc ..."
597597
cd "$target_src_dir/$expat_dir"
598-
$configure --prefix="$prefix" --enable-static --disable-shared \
598+
CPPFLAGS="-DXML_POOR_ENTROPY=1 -DXML_DEV_URANDOM=1" $configure \
599+
--prefix="$prefix" --enable-static --disable-shared \
600+
--with-dev-urandom \
599601
--without-docbook \
600602
CFLAGS="$CFLAGS -O3 -fPIC"
601603
make

0 commit comments

Comments
 (0)