Browse Source

Merge pull request #44855 from thaJeztah/23.0_backport_fix_arm64_build

[23.0 backport] Dockerfile: prefer ld for building against arm64
Bjorn Neergaard 2 years ago
parent
commit
f825537119
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -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