Skip to content

Commit

Permalink
fix: arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jun 17, 2024
1 parent cdc9564 commit 76bab8b
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions Dockerfile.linuxcross
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,22 @@ USER root:root
WORKDIR /root/pkg-fetch/
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
curl \
software-properties-common \
ca-certificates \
gnupg \
binutils \
g++-10 \
git \
make \
patch \
python3 \
python3-distutils \
crossbuild-essential-arm64
RUN apt-get update
RUN apt-get install -y curl software-properties-common ca-certificates gnupg

# Install Node.js 20
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs

RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get install -y binutils g++-10 git make patch python3 python3-distutils

ARG TARGET_TOOLCHAIN_ARCH

RUN [ `uname -m` = ${TARGET_TOOLCHAIN_ARCH} ] || \
apt-get install -y binutils-${TARGET_TOOLCHAIN_ARCH}-linux-gnu g++-10-${TARGET_TOOLCHAIN_ARCH}-linux-gnu

ENV CC=${TARGET_TOOLCHAIN_ARCH}-linux-gnu-gcc-10
ENV CXX=${TARGET_TOOLCHAIN_ARCH}-linux-gnu-g++-10
ENV AR=${TARGET_TOOLCHAIN_ARCH}-linux-gnu-ar
Expand Down

0 comments on commit 76bab8b

Please sign in to comment.