mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
nodejs.org: build static binary on linux/x86-64
This commit is contained in:
parent
38be359c68
commit
ab47472bca
1 changed files with 15 additions and 1 deletions
|
@ -28,10 +28,20 @@ build:
|
|||
freedesktop.org/pkg-config: ^0.29
|
||||
script: |
|
||||
./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
|
||||
env:
|
||||
ARGS:
|
||||
# we provide npm (well not yet, but we will)
|
||||
- --without-npm
|
||||
- --prefix={{ prefix }}
|
||||
# like, maybe we should include this?
|
||||
|
@ -39,6 +49,10 @@ build:
|
|||
- --with-intl=system-icu
|
||||
- --shared-openssl
|
||||
- --shared-zlib
|
||||
linux/x86-64:
|
||||
ARGS:
|
||||
- --fully-static
|
||||
- --enable-static
|
||||
|
||||
test:
|
||||
script: |
|
||||
|
|
Loading…
Reference in a new issue