Skip to content

Commit

Permalink
update node-v16.13.1
Browse files Browse the repository at this point in the history
- v8: disable trap handler
- libuv: build fix with epoll.o
  • Loading branch information
dna2github committed Jan 3, 2022
1 parent 064dab8 commit df2bf1a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
set -xe

MEDIR=$(cd `dirname $0`; pwd)
ME=node-v16.13.0
ME=node-v16.13.1

cd $MEDIR
source env.sh

cd ..
rm -rf $ME
fetch_source $ME.tar.gz https://nodejs.org/dist/v16.13.0/node-v16.13.0.tar.gz
fetch_source $ME.tar.gz https://nodejs.org/dist/v16.13.1/node-v16.13.1.tar.gz
tar zxf $ENVSRCTARBALL/$ME.tar.gz
cd $ME

Expand Down Expand Up @@ -58,6 +58,12 @@ export GYP_DEFINES

grep "LD_LIBRARY_PATH=" . -r | grep -v Binary | cut -d ':' -f 1 | sort -u | xargs sed -i "s|LD_LIBRARY_PATH=|LD_LIBRARY_PATH=$HOST_GCC_DIR/dist/lib64:|g"

# make sure some functions are available in link stage
sed -i 's|/poll.o \\|/poll.o \\\n\t$(obj).target/$(TARGET)/deps/uv/src/unix/epoll.o \\|' out/deps/uv/libuv.target.mk

# disable TRAP_HANDLER
sed -i "s|// Setup for shared library export.|#undef V8_TRAP_HANDLER_VIA_SIMULATOR\n#undef V8_TRAP_HANDLER_SUPPORTED\n#define V8_TRAP_HANDLER_SUPPORTED false\n\n// Setup for shared library export.|" deps/v8/src/trap-handler/trap-handler.h

make -j4
make install

Expand Down

0 comments on commit df2bf1a

Please sign in to comment.