static compilation

This commit is contained in:
Marc
2022-02-21 11:33:38 +01:00
parent a04c10d4c1
commit fc41d4bec0
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -5,7 +5,7 @@ then echo "Please don't run this as root"
exit
fi
VERSION=17.1.0
VERSION=17.5.0
if [ ! -f src/node-$VERSION/Makefile ]
then
@@ -18,8 +18,13 @@ unzip $VERSION.zip || exit 1
cd -
fi
echo "building"
#LD_LIBRARY_PATH=$(pwd)/../rootfs/lib:$(pwd)/../rootfs/lib64:$(pwd)/../rootfs/usr/lib:$(pwd)/../rootfs/usr/lib32:$(pwd)/../rootfs/usr/lib64:/lib:$(pwd)/lib64:$(pwd)/usr/lib:$(pwd)/usr/lib32:$(pwd)/usr/lib64
cd src/node-$VERSION
./configure --prefix=/usr || exit 1
#https://github.com/nodejs/node/issues/41497
./configure --prefix=/usr --fully-static --enable-static || exit 1
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$(nproc) || exit 1
cd -