!37 Support build with clang

From: @luofeng14 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-02-27 09:36:47 +00:00 committed by Gitee
commit 1ea9bd5be7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: rsync
Version: 3.2.7
Release: 2
Release: 3
Summary: Fast incremental file transfer utility
License: GPL-3.0-or-later
URL: http://rsync.samba.org/
@ -38,6 +38,9 @@ at one of the ends of the link beforehand.
%autosetup -n %{name}-%{version} -p1
%build
%if "%{?toolchain}" == "clang"
CFLAGS="${CFLAGS:-%{?build_cflags}} -Wno-strict-prototypes"; export CFLAGS;
%endif
%configure --disable-xxhash
%make_build
@ -81,6 +84,12 @@ install -D -m644 %{SOURCE5} %{buildroot}/%{_unitdir}/rsyncd@.service
%{_mandir}/man5/rsyncd.conf.5*
%changelog
* Thu Feb 22 2024 Xiaoya Huang <huangxiaoya@iscas.ac.cn> - 3.2.7-3
- Type: enhencement
- CVE:
- SUG:NA
- DESC: support clang build
* Thu Jun 15 2023 zhoupengcheng <zhoupengcheng11@huawei.com> - 3.2.7-2
- Type:bugfix
- CVE: