File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,18 @@ ARG TARGETARCH
12
12
# Install cross compiler toolchains
13
13
RUN case "$TARGETARCH" in \
14
14
amd64) true ;; \
15
- arm64) apt-get -y update && apt-get install --no-install-recommends -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu ;; \
15
+ arm64) apt-get -y update && apt-get install --no-install-recommends -y binutils-aarch64-linux-gnu ;; \
16
16
esac && rm -rf /var/lib/apt/lists/*
17
17
# Enable tokio runtime metrics
18
18
ENV RUSTFLAGS="--cfg tokio_unstable"
19
- ENV AWS_LC_SYS_CFLAGS_aarch64_unknown_linux_gnu='-fuse-ld=/usr/aarch64-linux-gnu/bin/ld'
20
19
RUN --mount=type=cache,target=target \
21
20
--mount=type=cache,target=/usr/local/cargo/registry \
22
21
target=$(case "$TARGETARCH" in \
23
22
amd64) echo x86_64-unknown-linux-musl ;; \
24
23
arm64) echo aarch64-unknown-linux-musl ;; \
25
24
*) echo "unsupported architecture: $TARGETARCH" >&2; exit 1 ;; \
26
25
esac) && \
27
- just-cargo profile=$BUILD_TYPE target=$target build --package=linkerd-policy-controller && \
26
+ just-cargo CFLAGS_aarch64_unknown_linux_musl= "" profile=$BUILD_TYPE target=$target build --package=linkerd-policy-controller && \
28
27
mv "target/$target/$BUILD_TYPE/linkerd-policy-controller" /tmp/
29
28
30
29
FROM scratch AS runtime
You can’t perform that action at this time.
0 commit comments