diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-25 00:02:22 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-25 00:02:22 +0800 |
| commit | 2195d5e6b87fc6c3c46851f28ce3a6fe71189f17 (patch) | |
| tree | a652879b7b13d6f4f8ae7adbacd551a808f83812 /repos | |
| parent | 54c03a691369955cdc597f298b1c041c39b8f3cc (diff) | |
| download | alicelinux-2195d5e6b87fc6c3c46851f28ce3a6fe71189f17.tar.gz alicelinux-2195d5e6b87fc6c3c46851f28ce3a6fe71189f17.zip | |
nodejs: fix build when using libressl
Diffstat (limited to 'repos')
| -rw-r--r-- | repos/extra/nodejs/abuild | 24 | ||||
| -rwxr-xr-x[-rw-r--r--] | repos/extra/nodejs/depends | 1 |
2 files changed, 18 insertions, 7 deletions
diff --git a/repos/extra/nodejs/abuild b/repos/extra/nodejs/abuild index 179a64d8..c3b4e261 100644 --- a/repos/extra/nodejs/abuild +++ b/repos/extra/nodejs/abuild @@ -4,13 +4,23 @@ release=1 source="https://$name.org/dist/v$version/node-v$version.tar.xz" build() { - ./configure --prefix=/usr \ - --shared-cares \ - --shared-libuv \ - --shared-openssl \ - --shared-nghttp2 \ - --shared-zlib \ - --with-intl=system-icu + # use system openssl when openssl installed + if [ -f $SPM_PKGDB/openssl ]; then + _opt="--shared-openssl" + fi + # use ninja when ninja/samurai installed + if [ -f $SPM_PKGDB/ninja ] || [ -f $SPM_PKGDB/samurai ]; then + _opt="$_opt --ninja" + fi + ./configure \ + --prefix=/usr \ + --shared-cares \ + --shared-libuv \ + --shared-nghttp2 \ + --shared-nghttp3 \ + --shared-zlib \ + --with-intl=system-icu \ + $_opt make make install } diff --git a/repos/extra/nodejs/depends b/repos/extra/nodejs/depends index dbe042b1..d67a5c30 100644..100755 --- a/repos/extra/nodejs/depends +++ b/repos/extra/nodejs/depends @@ -1,3 +1,4 @@ c-ares libuv nghttp2 +nghttp3 |