!171 Add a workaround for fixing clang building issues
From: @markeryang Reviewed-by: @huyubiao, @xujing99 Signed-off-by: @xujing99
This commit is contained in:
commit
e71371ae45
@ -1,6 +1,6 @@
|
|||||||
Name: coreutils
|
Name: coreutils
|
||||||
Version: 9.4
|
Version: 9.4
|
||||||
Release: 7
|
Release: 8
|
||||||
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/
|
||||||
@ -84,7 +84,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"
|
||||||
@ -160,6 +168,9 @@ fi
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 22 2024 yanglongkang <yanglongkang@h-partners.com> - 9.4-8
|
||||||
|
- add a workaround for fixing clang building issues
|
||||||
|
|
||||||
* Tue Jun 25 2024 zhangxianting <zhangxianting@uniontech.com> - 9.4-7
|
* Tue Jun 25 2024 zhangxianting <zhangxianting@uniontech.com> - 9.4-7
|
||||||
- remove arch judgement at patch that support sw
|
- remove arch judgement at patch that support sw
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user