support clang build

Signed-off-by: luofeng14 <luofeng13@huawei.com>
This commit is contained in:
luofeng14 2024-02-23 02:22:57 +00:00 committed by Gitee
parent 45b826736a
commit 7377552e33
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: