summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCrazyMax <crazy-max@users.noreply.github.com>2023-01-19 16:34:34 +0100
committerCrazyMax <crazy-max@users.noreply.github.com>2023-01-19 16:34:34 +0100
commitd2d6ef431f9d2180784dfeea7788900a27066f4a (patch)
tree2eae856611aefd42ca0262d305fc0d5dd05e2a06 /Dockerfile
parented8782fe0aa11dcc92f84cdcd1f9896d6d035328 (diff)
downloaddocker-d2d6ef431f9d2180784dfeea7788900a27066f4a.tar.gz
Dockerfile: prefer ld for building against arm64
We already prefer ld for cross-building arm64 but that seems not enough as native arm64 build also has a linker issue with lld so we need to also prefer ld for native arm64 build. Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 3c3b4cee60..463e1753ba 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -581,7 +581,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