From 75d135dbc0a5f728634d93b66cdf14b44df7bb99 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Mon, 29 Apr 2024 12:07:50 +0200 Subject: [PATCH] Fix Linux build according to https://github.com/nodejs/node/issues/52223 --- recipe/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipe/build.sh b/recipe/build.sh index c5286c9a..c0555492 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -11,6 +11,10 @@ if [[ "$target_platform" == osx-* ]]; then else # need librt for clock_gettime with nodejs >= 12.12 export LDFLAGS="$LDFLAGS -lrt" + + # https://github.com/nodejs/node/issues/52223 + sed -i 's/define HAVE_SYS_RANDOM_H 1/undef HAVE_SYS_RANDOM_H/g' deps/cares/config/linux/ares_config.h + sed -i 's/define HAVE_GETRANDOM 1/undef HAVE_GETRANDOM/g' deps/cares/config/linux/ares_config.h fi if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then