OpenEuler gcc already support inline subword atomic for RISC-V. So remove the redundant flag.
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From a37ca95db184fb97c55a294449fe7622a5aecdda Mon Sep 17 00:00:00 2001
|
|
From: laokz <zhangkai@iscas.ac.cn>
|
|
Date: Tue, 18 Jul 2023 19:37:14 +0800
|
|
Subject: [PATCH] riscv64: remove flag -latomic
|
|
|
|
Because openEuler gcc already support inline subword atomic
|
|
for RISC-V, remove the redundant flag.
|
|
---
|
|
Makefile.am | 3 ---
|
|
Makefile.in | 1 -
|
|
2 files changed, 4 deletions(-)
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
index d64df5d..ba6cd48 100644
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -41,9 +41,6 @@ memhog_LDADD = libnuma.la
|
|
|
|
libnuma_la_SOURCES = libnuma.c syscall.c distance.c affinity.c affinity.h sysfs.c sysfs.h rtnetlink.c rtnetlink.h versions.ldscript
|
|
libnuma_la_LDFLAGS = -version-info 1:0:0 -Wl,--version-script,$(srcdir)/versions.ldscript -Wl,-init,numa_init -Wl,-fini,numa_fini
|
|
-if RISCV64
|
|
-libnuma_la_LDFLAGS += -latomic
|
|
-endif
|
|
|
|
check_PROGRAMS = \
|
|
test/distance \
|
|
diff --git a/Makefile.in b/Makefile.in
|
|
index 8cbad1c..a196ea0 100644
|
|
--- a/Makefile.in
|
|
+++ b/Makefile.in
|
|
@@ -95,7 +95,6 @@ target_triplet = @target@
|
|
bin_PROGRAMS = numactl$(EXEEXT) numastat$(EXEEXT) numademo$(EXEEXT) \
|
|
migratepages$(EXEEXT) migspeed$(EXEEXT) memhog$(EXEEXT)
|
|
@HAVE_TREE_VECTORIZE_TRUE@am__append_1 = -ftree-vectorize
|
|
-@RISCV64_TRUE@am__append_2 = -latomic
|
|
check_PROGRAMS = test/distance$(EXEEXT) test/ftok$(EXEEXT) \
|
|
test/mbind_mig_pages$(EXEEXT) test/migrate_pages$(EXEEXT) \
|
|
test/move_pages$(EXEEXT) test/mynode$(EXEEXT) \
|
|
--
|
|
2.40.1
|
|
|