1 Star 0 Fork 22

MerlinDust/coreutils_1

forked from src-anolis-os/coreutils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
coreutils-8.30-sw.patch 2.77 KB
一键复制 编辑 原始数据 按行查看 历史
康后银 提交于 2023-08-09 12:41 . add sw
diff -Nuar coreutils-8.30.org/configure coreutils-8.30.sw/configure
--- coreutils-8.30.org/configure 2023-08-08 20:07:32.495829627 +0800
+++ coreutils-8.30.sw/configure 2023-08-08 20:08:07.293053826 +0800
@@ -7318,6 +7318,13 @@
# (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
# and the GCC 4.1.2 manual).
case "$host_cpu" in
+ sw_64*)
+ if test -n "$GCC"; then
+ CPPFLAGS="$CPPFLAGS -mieee"
+ else
+ CPPFLAGS="$CPPFLAGS -ieee"
+ fi
+ ;;
alpha*)
# On Alpha systems, a compiler option provides the behaviour.
# See the ieee(3) manual page, also available at
@@ -15245,6 +15252,9 @@
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
gl_cv_host_cpu_c_abi=alpha
;;
+ sw_64* )
+ gl_cv_host_cpu_c_abi=sw_64
+ ;;
arm* | aarch64 )
# Assume arm with EABI.
diff -Nuar coreutils-8.30.org/lib/uname.c coreutils-8.30.sw/lib/uname.c
--- coreutils-8.30.org/lib/uname.c 2023-08-08 20:07:32.524830648 +0800
+++ coreutils-8.30.sw/lib/uname.c 2023-08-08 20:08:07.294053862 +0800
@@ -222,6 +222,10 @@
case PROCESSOR_ARCHITECTURE_MIPS:
strcpy (buf->machine, "mips");
break;
+ case PROCESSOR_ARCHITECTURE_SW_64:
+ case PROCESSOR_ARCHITECTURE_SW_6464:
+ strcpy (buf->machine, "sw_64");
+ break;
case PROCESSOR_ARCHITECTURE_ALPHA:
case PROCESSOR_ARCHITECTURE_ALPHA64:
strcpy (buf->machine, "alpha");
diff -Nuar coreutils-8.30.org/m4/fpieee.m4 coreutils-8.30.sw/m4/fpieee.m4
--- coreutils-8.30.org/m4/fpieee.m4 2023-08-08 20:07:32.430827340 +0800
+++ coreutils-8.30.sw/m4/fpieee.m4 2023-08-08 20:08:07.295053897 +0800
@@ -30,6 +30,11 @@
# (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
# and the GCC 4.1.2 manual).
case "$host_cpu" in
+ sw_64*)
+ if test -n "$GCC"; then
+ CPPFLAGS="$CPPFLAGS -mieee"
+ fi
+ ;;
alpha*)
# On Alpha systems, a compiler option provides the behaviour.
# See the ieee(3) manual page, also available at
diff -Nuar coreutils-8.30.org/m4/host-cpu-c-abi.m4 coreutils-8.30.sw/m4/host-cpu-c-abi.m4
--- coreutils-8.30.org/m4/host-cpu-c-abi.m4 2023-08-08 20:07:32.424827128 +0800
+++ coreutils-8.30.sw/m4/host-cpu-c-abi.m4 2023-08-08 20:08:07.295053897 +0800
@@ -91,6 +91,12 @@
;;
changequote(,)dnl
+ sw_64 )
+changequote([,])dnl
+ gl_cv_host_cpu_c_abi=sw_64
+ ;;
+
+changequote(,)dnl
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
changequote([,])dnl
gl_cv_host_cpu_c_abi=alpha
@@ -355,6 +361,9 @@
#ifndef __x86_64__
#undef __x86_64__
#endif
+#ifndef __sw_64__
+#undef __sw_64__
+#endif
#ifndef __alpha__
#undef __alpha__
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DustMerlin/coreutils_1.git
git@gitee.com:DustMerlin/coreutils_1.git
DustMerlin
coreutils_1
coreutils_1
a8

搜索帮助