!9 修复 clang 构建错误

From: @jammyjellyfish 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
This commit is contained in:
openeuler-ci-bot 2023-04-24 08:10:28 +00:00 committed by Gitee
commit 5474682309
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: ypserv
Version: 4.2
Release: 1
Release: 2
Summary: The NIS server
License: GPLv2
URL: https://github.com/thkukuk/ypserv
@ -52,6 +52,10 @@ autoreconf -i
cp etc/README etc/README.etc
export CFLAGS="$RPM_OPT_FLAGS -fpic"
%if "%toolchain" == "clang"
export CFLAGS="$CFLAGS -Wno-error=strict-prototypes"
%endif
%configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \
--with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux
%make_build
@ -105,6 +109,12 @@ install -m 644 etc/ypserv.conf %{buildroot}/%{_sysconfdir}
%{_mandir}/*/*
%changelog
* Thu Apr 20 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 4.2-2
- Type:requirement
- ID:NA
- SUG:NA
- DESC:Fix clang build error
* Tue Nov 15 2022 xingwei <xingwei14@h-partners.com> - 4.2-1
- Type:requirement
- ID:NA