nodejs.org: build static binary on linux/x86-64

This commit is contained in:
Jacob Heider 2023-01-26 21:54:05 -05:00 committed by Max Howell
parent 38be359c68
commit ab47472bca

View file

@ -28,10 +28,20 @@ build:
freedesktop.org/pkg-config: ^0.29 freedesktop.org/pkg-config: ^0.29
script: | script: |
./configure $ARGS ./configure $ARGS
# FIXME: currently, dynamic builds of nodejs.org are segfaulting on linux/x86-64
if test "{{hw.platform}}/{{hw.arch}}" = "linux/x86-64"; then
for i in out/tools/v8_gypfiles/gen-regexp-special-case.target.mk out/test_crypto_engine.target.mk; do
if test -f "$i"; then
sed -i.bak -e 's/\-static//g' $i
rm $i.bak
fi
done
fi
make --jobs {{ hw.concurrency }} install make --jobs {{ hw.concurrency }} install
env: env:
ARGS: ARGS:
# we provide npm (well not yet, but we will)
- --without-npm - --without-npm
- --prefix={{ prefix }} - --prefix={{ prefix }}
# like, maybe we should include this? # like, maybe we should include this?
@ -39,6 +49,10 @@ build:
- --with-intl=system-icu - --with-intl=system-icu
- --shared-openssl - --shared-openssl
- --shared-zlib - --shared-zlib
linux/x86-64:
ARGS:
- --fully-static
- --enable-static
test: test:
script: | script: |