Merge pull request #44855 from thaJeztah/23.0_backport_fix_arm64_build

[23.0 backport] Dockerfile: prefer ld for building against arm64
This commit is contained in:
Bjorn Neergaard 2023-01-19 13:23:07 -07:00 committed by GitHub
commit f825537119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -583,7 +583,7 @@ ARG PACKAGER_NAME
ENV PREFIX=/tmp
RUN <<EOT
# in bullseye arm64 target does not link with lld so configure it to use ld instead
if xx-info is-cross && [ "$(xx-info arch)" = "arm64" ]; then
if [ "$(xx-info arch)" = "arm64" ]; then
XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
fi
EOT