فهرست منبع

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>
CrazyMax 2 سال پیش
والد
کامیت
d2d6ef431f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -581,7 +581,7 @@ ARG PACKAGER_NAME
 ENV PREFIX=/tmp
 ENV PREFIX=/tmp
 RUN <<EOT
 RUN <<EOT
   # in bullseye arm64 target does not link with lld so configure it to use ld instead
   # 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
     XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
   fi
   fi
 EOT
 EOT