!165 [sync] PR-144: Add a workaround for fixing clang building issues
From: @openeuler-sync-bot Reviewed-by: @dillon_chen Signed-off-by: @dillon_chen
This commit is contained in:
commit
d16b2e361d
@ -1,6 +1,6 @@
|
|||||||
Name: coreutils
|
Name: coreutils
|
||||||
Version: 9.4
|
Version: 9.4
|
||||||
Release: 6
|
Release: 7
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Summary: A set of basic GNU tools commonly used in shell scripts
|
Summary: A set of basic GNU tools commonly used in shell scripts
|
||||||
Url: https://www.gnu.org/software/coreutils/
|
Url: https://www.gnu.org/software/coreutils/
|
||||||
@ -87,7 +87,15 @@ autoreconf -fiv
|
|||||||
if [ %user = root ]; then
|
if [ %user = root ]; then
|
||||||
export FORCE_UNSAFE_CONFIGURE=1
|
export FORCE_UNSAFE_CONFIGURE=1
|
||||||
fi
|
fi
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fpic -fsigned-char"
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fpic -fsigned-char"
|
||||||
|
|
||||||
|
# add -Wno-unused-command-line-argument when building with clang
|
||||||
|
# as a workaround for stdbuf detection faliure during configuring
|
||||||
|
%if "%{?toolchain}" == "clang"
|
||||||
|
CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
export CFLAGS
|
||||||
|
|
||||||
# make mknod work again in chroot without /proc being mounted
|
# make mknod work again in chroot without /proc being mounted
|
||||||
export ac_cv_func_lchmod="no"
|
export ac_cv_func_lchmod="no"
|
||||||
@ -163,6 +171,9 @@ fi
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 11 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 9.4-7
|
||||||
|
- add a workaround for fixing clang building issues
|
||||||
|
|
||||||
* Mon Jun 24 2024 huyubiao <huyubiao@huawei.com> - 9.4-6
|
* Mon Jun 24 2024 huyubiao <huyubiao@huawei.com> - 9.4-6
|
||||||
- backport patches from community
|
- backport patches from community
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user