Skip to content

Commit

Permalink
Fix Linux build according to nodejs/node#52223
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Apr 29, 2024
1 parent 3bca339 commit 75d135d
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 @@ -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
Expand Down

0 comments on commit 75d135d

Please sign in to comment.