]> git.pld-linux.org Git - packages/mold.git/blobdiff - atomic.patch
link with libatomic on %{armv6}
[packages/mold.git] / atomic.patch
diff --git a/atomic.patch b/atomic.patch
new file mode 100644 (file)
index 0000000..3b6bfbe
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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.
+-ifeq ($(ARCH), riscv64)
++ifneq (,$(filter armv6% riscv64, $(ARCH)))
+   MOLD_LDFLAGS += -latomic
+ endif
This page took 0.09543 seconds and 4 git commands to generate.