git » nodejs.git » commit b5cec4a

nodejs 21.7.2

author Urja (ARMLFS builder)
2024-07-12 17:47:50 UTC
committer Urja (ARMLFS builder)
2024-07-12 17:47:50 UTC
parent 46969b109c2167a3028ff6bbb7b61eaa29aa91fd

nodejs 21.7.2

PKGBUILD +2 -2

diff --git a/PKGBUILD b/PKGBUILD
index 9562ecc..10b85cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ pkgver=21.7.2
 _commit=d4a1d050c0b22f0455bb6eb53eca8f7e7da937d2
 pkgrel=1
 pkgdesc='Evented I/O for V8 javascript'
-arch=('armv7h')
+arch=('armv7h' 'aarch64')
 url='https://nodejs.org/'
 license=('MIT')
 options=(!lto)
@@ -26,7 +26,7 @@ build() {
   cd node
 
   # Use the 64-bit compiler (if available)
-  export PATH=/usr/cross-a64/bin:$PATH
+  [[ $CARCH == "armv7h" ]] && export PATH=/usr/cross-a64/bin:$PATH
 
   # /usr/lib/libnode.so uses malloc_usable_size, which is incompatible with fortification level 3
   export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"