support clang build
Signed-off-by: luofeng14 <luofeng13@huawei.com> (cherry picked from commit 1c1a346e1e2be6243c7d6238a61301f26706271a)
This commit is contained in:
parent
25fa482107
commit
ed46cf51b5
@ -1,6 +1,6 @@
|
|||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 2.10
|
Version: 2.10
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Important Programs for Networking
|
Summary: Important Programs for Networking
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://sourceforge.net/projects/net-tools/
|
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"
|
export LDFLAGS="${RPM_LD_FLAGS} -pie -Wl,-z,now"
|
||||||
make
|
make
|
||||||
make ether-wake
|
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
|
%install
|
||||||
mv man/de_DE man/de
|
mv man/de_DE man/de
|
||||||
@ -107,6 +107,12 @@ touch %{buildroot}%{_unitdir}/arp-ethers.service
|
|||||||
%exclude %{_mandir}/pt/man5
|
%exclude %{_mandir}/pt/man5
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Dec 19 2022 eaglegai <eaglegai@163.com> - 2.10-3
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user