Skip to content

Commit

Permalink
fix: fix static build of node
Browse files Browse the repository at this point in the history
  • Loading branch information
chorrell committed Mar 22, 2022
1 parent 86fb79d commit 809ff9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c -
tar -Jxf "node-v$NODE_VERSION.tar.xz"
cd "node-v$NODE_VERSION/"
./configure --fully-static --enable-static --without-npm --without-intl
# See: https://github.com/nodejs/node/issues/41497#issuecomment-1013137433
for i in out/tools/v8_gypfiles/gen-regexp-special-case.target.mk out/test_crypto_engine.target.mk; do
sed -i 's/\-static//g' $i || echo "nevermind";
done
make -j"$(getconf _NPROCESSORS_ONLN)"

0 comments on commit 809ff9d

Please sign in to comment.