support for building with clang

Signed-off-by: luofeng14 <luofeng13@huawei.com>
(cherry picked from commit 9c491bb99c18113cb883365312d5c392be26b333)
This commit is contained in:
luofeng14 2024-02-04 07:53:35 +00:00 committed by openeuler-sync-bot
parent cb2d8941df
commit b6f00b7385

View File

@ -1,6 +1,6 @@
Name: iputils Name: iputils
Version: 20221126 Version: 20221126
Release: 2 Release: 3
Summary: Network monitoring tools including ping Summary: Network monitoring tools including ping
License: BSD and GPLv2+ License: BSD and GPLv2+
URL: https://github.com/iputils/iputils URL: https://github.com/iputils/iputils
@ -37,7 +37,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
%meson -Db_pie=true %meson -Db_pie=true
%meson_build %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 %install
%meson_install %meson_install
@ -82,6 +82,12 @@ install -cp ifenslave.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
%{_mandir}/man8/*.8.gz %{_mandir}/man8/*.8.gz
%changelog %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 * Tue Apr 18 2023 zhongxuan <zhongxuan2@huawei.com> - 20221126-2
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA