1 Star 0 Fork 18

chenhaixaing/numactl

forked from src-openEuler/numactl 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0009-riscv64-remove-flag-latomic.patch 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
laokz 提交于 2023-07-18 19:46 . riscv64: remove -latomic flag
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenhaixaing/numactl.git
git@gitee.com:chenhaixaing/numactl.git
chenhaixaing
numactl
numactl
master

搜索帮助