!79 [sync] PR-77: Support build with clang

From: @openeuler-sync-bot 
Reviewed-by: @gebidelidaye 
Signed-off-by: @gebidelidaye
This commit is contained in:
openeuler-ci-bot 2024-03-27 01:18:19 +00:00 committed by Gitee
commit 53c4b60e0a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: iputils
Version: 20221126
Release: 2
Release: 3
Summary: Network monitoring tools including ping
License: BSD and GPLv2+
URL: https://github.com/iputils/iputils
@ -37,7 +37,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
%meson -Db_pie=true
%meson_build
gcc -Wall -fpie $RPM_OPT_FLAGS $CFLAGS $RPM_LD_FLAGS $LDFLAGS ifenslave.c -o ifenslave
%{__cc} -Wall -fpie $RPM_OPT_FLAGS $CFLAGS $RPM_LD_FLAGS $LDFLAGS ifenslave.c -o ifenslave
%install
%meson_install
@ -82,6 +82,12 @@ install -cp ifenslave.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
%{_mandir}/man8/*.8.gz
%changelog
* Thu Nov 16 2023 r30030392 <renyi43@huawei.com> - 20221126-3
- Type:NA
- CVE:NA
- SUG:NA
- DESC:support for building with clang
* Tue Apr 18 2023 zhongxuan <zhongxuan2@huawei.com> - 20221126-2
- Type:bugfix
- ID:NA