Skip to content

Commit

Permalink
Add workaround for nodejs/node#52223
Browse files Browse the repository at this point in the history
  • Loading branch information
skupr-anaconda committed Sep 6, 2024
1 parent f7c0036 commit d3f5824
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ else
# need librt for clock_gettime with nodejs >= 12.12
export LDFLAGS="$LDFLAGS -lrt"
echo "LDFLAGS=$LDFLAGS"

# 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

EXTRA_ARGS=
Expand Down

0 comments on commit d3f5824

Please sign in to comment.