repo/extra/nodejs/build
2021-06-30 18:11:48 +00:00

21 lines
445 B
Bash
Executable File

#!/bin/sh -e
./configure \
--shared-zlib \
--with-intl=none \
--without-etw \
--without-dtrace \
--without-report \
--without-node-snapshot \
--without-node-code-cache \
--partly-static \
--ninja
ninja -C out/Release
tools/install.py install "$1" /usr
# Remove unneeded files.
rm -rf "$1/usr/include/node/openssl"
rm -rf "$1/usr/lib/node_modules/npm/scripts"
rm -f "$1/usr/lib/node_modules/npm/configure"