From a01ae2ecfb43a085073acc1e50ed7e29466a756f Mon Sep 17 00:00:00 2001 From: j842 Date: Tue, 10 Jun 2025 17:56:50 +1200 Subject: [PATCH] Fix aarch64 build? --- build-base/Dockerfile.dropshell-build-base | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build-base/Dockerfile.dropshell-build-base b/build-base/Dockerfile.dropshell-build-base index 9ebe899..57b1553 100644 --- a/build-base/Dockerfile.dropshell-build-base +++ b/build-base/Dockerfile.dropshell-build-base @@ -63,11 +63,17 @@ RUN curl -LO https://github.com/c-ares/c-ares/releases/download/v${CARES_VERSION # Build OpenSSL statically with musl ARG OPENSSL_VERSION=3.3.0 +ARG TARGETPLATFORM WORKDIR /tmp RUN curl -LO https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz && \ tar xzf openssl-${OPENSSL_VERSION}.tar.gz && \ cd openssl-${OPENSSL_VERSION} && \ - ./Configure no-shared no-dso no-tests no-async linux-x86_64 \ + if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ + OPENSSL_TARGET="linux-aarch64"; \ + else \ + OPENSSL_TARGET="linux-x86_64"; \ + fi && \ + ./Configure no-shared no-dso no-tests no-async $OPENSSL_TARGET \ --prefix=/usr/local \ -static -fPIC && \ make -j$(nproc) && \