add a workaround for fixing the stdbuf detection issue when building with clang
This commit is contained in:
parent
7b60c299cb
commit
e52be7d087
@ -1,6 +1,6 @@
|
||||
Name: coreutils
|
||||
Version: 9.4
|
||||
Release: 7
|
||||
Release: 8
|
||||
License: GPLv3+
|
||||
Summary: A set of basic GNU tools commonly used in shell scripts
|
||||
Url: https://www.gnu.org/software/coreutils/
|
||||
@ -84,7 +84,15 @@ autoreconf -fiv
|
||||
if [ %user = root ]; then
|
||||
export FORCE_UNSAFE_CONFIGURE=1
|
||||
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
|
||||
export ac_cv_func_lchmod="no"
|
||||
@ -160,6 +168,9 @@ fi
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%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
|
||||
- remove arch judgement at patch that support sw
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user