static compilation
This commit is contained in:
+7
-2
@@ -5,7 +5,7 @@ then echo "Please don't run this as root"
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=17.1.0
|
VERSION=17.5.0
|
||||||
|
|
||||||
if [ ! -f src/node-$VERSION/Makefile ]
|
if [ ! -f src/node-$VERSION/Makefile ]
|
||||||
then
|
then
|
||||||
@@ -18,8 +18,13 @@ unzip $VERSION.zip || exit 1
|
|||||||
cd -
|
cd -
|
||||||
fi
|
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
|
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
|
make -j$(nproc) || exit 1
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,4 +4,4 @@ then echo "Please don't run this as root"
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gcc osLoader.c -O3 -o init
|
gcc osLoader.c -static -O3 -o init
|
||||||
|
|||||||
Reference in New Issue
Block a user