Package: gcc-12
Version: 12.2.0-11
Severity: wishlist
Tags: patch
User: debian-de...@lists.debian.org
Usertags: loongarch64

Dear gcc maintainers,

According to LoongArch manual: https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html LoongArch need to change multiarch from loongarch64-linux-gnu to loongarch64-linux-gnuf64.

Please consider applying the attached patch and we could continue to discuss.

Thanks
Dandan Zhang

diff --git a/debian/patches/gcc-multilib-multiarch.diff b/debian/patches/gcc-multilib-multiarch.diff
index 128d6008a..bd05f757b 100644
--- a/debian/patches/gcc-multilib-multiarch.diff
+++ b/debian/patches/gcc-multilib-multiarch.diff
@@ -119,7 +119,7 @@
      # Only define MULTIARCH_DIRNAME when multiarch is enabled,
      # or it would always introduce ${target} into the search path.
 -    MULTIARCH_DIRNAME = $(LA_MULTIARCH_TRIPLET)
-+    MULTIARCH_DIRNAME = $(call if_multiarch,loongarch64-linux-gnu)
++    MULTIARCH_DIRNAME = $(call if_multiarch,loongarch64-linux-gnuf64)
  endif
  
  # Don't define MULTILIB_OSDIRNAMES if multilib is disabled.
@@ -128,7 +128,7 @@
      MULTILIB_OSDIRNAMES = \
 -      mabi.lp64d=../lib64$\
 -      $(call if_multiarch,:loongarch64-linux-gnuf64)
-+      mabi.lp64d=../lib$(call if_multiarch,:loongarch64-linux-gnu)
++      mabi.lp64d=../lib$(call if_multiarch,:loongarch64-linux-gnuf64)
  
      MULTILIB_OSDIRNAMES += \
 -      mabi.lp64f=../lib64/f32$\

Reply via email to