Skip to content

Commit 809ff9d

Browse files
committed
fix: fix static build of node
See: nodejs/node#41497 (comment)
1 parent 86fb79d commit 809ff9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@ grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c -
5252
tar -Jxf "node-v$NODE_VERSION.tar.xz"
5353
cd "node-v$NODE_VERSION/"
5454
./configure --fully-static --enable-static --without-npm --without-intl
55+
# See: https://github.com/nodejs/node/issues/41497#issuecomment-1013137433
56+
for i in out/tools/v8_gypfiles/gen-regexp-special-case.target.mk out/test_crypto_engine.target.mk; do
57+
sed -i 's/\-static//g' $i || echo "nevermind";
58+
done
5559
make -j"$(getconf _NPROCESSORS_ONLN)"

0 commit comments

Comments
 (0)