From 87c4b49c3db316cd812c580320768538190b5cca Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Mon, 4 May 2026 17:46:04 +0300 Subject: [PATCH] fix: Build with a correct OpenSSL config on loongarch64 Trying to use asm config makes gyp pick up the fallback x86-64 config instead of loongarch64 one. This in turn leads to -m64 being passed to the compiler. --- Dockerfile-alpine.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index d4096cc08..ed86881cf 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -16,6 +16,7 @@ RUN addgroup -g 1000 node \ arm*) OPENSSL_ARCH=linux-armv4;; \ ppc64le) OPENSSL_ARCH=linux-ppc64le;; \ s390x) OPENSSL_ARCH=linux-s390x;; \ + loongarch64) CONFIGURE_OPENSSL_NO_ASM="--openssl-no-asm" OPENSSL_ARCH=linux64-loongarch64;; \ *) ;; \ esac \ && if [ -n "${CHECKSUM}" ]; then \ @@ -54,7 +55,7 @@ RUN addgroup -g 1000 node \ && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - \ && tar -xf "node-v$NODE_VERSION.tar.xz" \ && cd "node-v$NODE_VERSION" \ - && ./configure \ + && ./configure $CONFIGURE_OPENSSL_NO_ASM \ && make -j$(getconf _NPROCESSORS_ONLN) V= \ && make install \ && apk del .build-deps-full \