support clang build
(cherry picked from commit b69d0db9981b0f550815aecbded55af336ac0ff7)
This commit is contained in:
parent
383728a315
commit
1eb33e68d7
14
ipvsadm.spec
14
ipvsadm.spec
@ -1,6 +1,6 @@
|
|||||||
Name: ipvsadm
|
Name: ipvsadm
|
||||||
Version: 1.31
|
Version: 1.31
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: A utility to administer the IP virtual server services
|
Summary: A utility to administer the IP virtual server services
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://kernel.org/pub/linux/utils/kernel/ipvsadm/
|
URL: https://kernel.org/pub/linux/utils/kernel/ipvsadm/
|
||||||
@ -26,7 +26,11 @@ offered by the Linux kernel with IP virtual server support.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
make
|
%if "%{?toolchain}" == "clang"
|
||||||
|
%global make_opts CC=clang CXX=clang++
|
||||||
|
%endif
|
||||||
|
|
||||||
|
make %{?make_opts}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -56,6 +60,12 @@ install -p -D -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-co
|
|||||||
%{_mandir}/man8/*8*
|
%{_mandir}/man8/*8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 14 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 1.31-6
|
||||||
|
- Type: requirement
|
||||||
|
- ID: NA
|
||||||
|
- SUG: NA
|
||||||
|
- DESC: Support specify CC
|
||||||
|
|
||||||
* Fri Apr 22 2022 kwb0523 <kwb0523@163.com> - 1.31-5
|
* Fri Apr 22 2022 kwb0523 <kwb0523@163.com> - 1.31-5
|
||||||
- Type: requirement
|
- Type: requirement
|
||||||
- ID: NA
|
- ID: NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user