[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1018799: #1018799 patch



sorry, forget patch in previous mail.

--
Regards,
--
  Bo YU

diff -Nru gcc-12-12.2.0/debian/patches/fix-atomic-riscv64.diff gcc-12-12.2.0/debian/patches/fix-atomic-riscv64.diff
--- gcc-12-12.2.0/debian/patches/fix-atomic-riscv64.diff	1970-01-01 07:30:00.000000000 +0730
+++ gcc-12-12.2.0/debian/patches/fix-atomic-riscv64.diff	2022-08-22 15:38:01.000000000 +0800
@@ -0,0 +1,12 @@
+diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h
+--- a/gcc/config/riscv/linux.h
++++ b/gcc/config/riscv/linux.h
+@@ -40,7 +40,7 @@ along with GCC; see the file COPYING3.  If not see
+ #undef LIB_SPEC
+ #ifdef LD_AS_NEEDED_OPTION
+ #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC \
+-  " %{pthread:" LD_AS_NEEDED_OPTION " -latomic " LD_NO_AS_NEEDED_OPTION "}"
++  LD_AS_NEEDED_OPTION " -latomic " LD_NO_AS_NEEDED_OPTION
+ #else
+ #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC " -latomic "
+ #endif
diff -Nru gcc-12-12.2.0/debian/rules.patch gcc-12-12.2.0/debian/rules.patch
--- gcc-12-12.2.0/debian/rules.patch	2022-08-22 15:38:01.000000000 +0800
+++ gcc-12-12.2.0/debian/rules.patch	2022-08-22 15:38:01.000000000 +0800
@@ -142,6 +142,11 @@
   debian_patches += disable-gdc-tests
 endif
 
+
+ifeq (,$(filter $(DEB_TARGET_ARCH),riscv64))
+  debian_patches += fix-atomic-riscv64
+endif
+
 debian_patches += alpha-ieee
 ifneq ($(GFDL_INVARIANT_FREE),yes)
   debian_patches += alpha-ieee-doc

Attachment: signature.asc
Description: PGP signature


Reply to: