Skip to content

Commit

Permalink
Only use gold linker on arm/arm64
Browse files Browse the repository at this point in the history
gold linker seems to be abandoned upstream, and is only required for arm
due to a bug in old bfd linker. But there are no gold linker for
riscv64, so only pull in gold on arm/arm64.

fixes: k0sproject#4665
ref: golang/go#22040
Signed-off-by: Natanael Copa <ncopa@mirantis.com>
  • Loading branch information
ncopa committed Jun 27, 2024
1 parent 2402ff0 commit 253939a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
ARG BUILDIMAGE
FROM $BUILDIMAGE
RUN apk add --no-cache make gcc musl-dev binutils-gold
RUN \
case "$(uname -m)" in \
arm*|aarch64) pkg="binutils-gold";; \
*) pkg="binutils";; \
esac; \
apk add --no-cache make gcc musl-dev $pkg

ENV \
HOME="/run/k0s-build" \
Expand Down

0 comments on commit 253939a

Please sign in to comment.