support clang build

Signed-off-by: luofeng14 <luofeng13@huawei.com>
(cherry picked from commit 1c1a346e1e2be6243c7d6238a61301f26706271a)
This commit is contained in:
luofeng14 2024-02-25 10:16:50 +00:00 committed by openeuler-sync-bot
parent 25fa482107
commit ed46cf51b5

View File

@ -1,6 +1,6 @@
Name: net-tools
Version: 2.10
Release: 3
Release: 4
Summary: Important Programs for Networking
License: GPLv2+
URL: https://sourceforge.net/projects/net-tools/
@ -54,7 +54,7 @@ export CFLAGS="${RPM_OPT_FLAGS} -fpie"
export LDFLAGS="${RPM_LD_FLAGS} -pie -Wl,-z,now"
make
make ether-wake
gcc ${RPM_OPT_FLAGS} ${RPM_LD_FLAGS} -o mii-diag mii-diag.c
%{__cc} ${RPM_OPT_FLAGS} ${RPM_LD_FLAGS} -o mii-diag mii-diag.c
%install
mv man/de_DE man/de
@ -107,6 +107,12 @@ touch %{buildroot}%{_unitdir}/arp-ethers.service
%exclude %{_mandir}/pt/man5
%changelog
* Thu Feb 22 2024 luofng <luofeng13@huawei.com> - 2.10-4
- Type: enhencement
- CVE:NA
- SUG:NA
- DESC:support for building with clang
* Mon Dec 19 2022 eaglegai <eaglegai@163.com> - 2.10-3
- Type:bugfix
- ID:NA