--- mold-1.2.0/Makefile.orig 2022-04-15 11:08:14.000000000 +0200
+++ mold-1.2.0/Makefile 2022-04-18 15:00:15.960428924 +0200
@@ -110,7 +110,7 @@
- # '-latomic' flag is needed building on riscv64 system
- # RV32 system doesn't tested yet
- # seems like '-atomic' would be better but not working.
+
+ # '-latomic' flag is needed building on riscv64 system.
+ # Seems like '-atomic' would be better but not working.
-ifeq ($(ARCH), riscv64)
+ifneq (,$(filter armv6% riscv64, $(ARCH)))
MOLD_LDFLAGS += -latomic
Summary: mold: A Modern Linker
Name: mold
-Version: 1.2.1
+Version: 1.3.0
Release: 1
License: GPL v3+
Group: Development/Libraries
Source0: https://github.com/rui314/mold/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 69ba53ea65a09354a5cec09d9c574472
+# Source0-md5: f7ed6a7246e6ef945494f51e70072ad4
Patch0: atomic.patch
URL: https://github.com/rui314/mold
%ifarch %{armv6} riscv64
BuildRequires: libstdc++-devel >= 6:10
BuildRequires: mimalloc-devel >= 1.7
BuildRequires: openssl-devel
-BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 2.007
BuildRequires: tbb-devel >= 2021.3.0
BuildRequires: zlib-devel