!53 [sync] PR-52: Support build with clang
From: @openeuler-sync-bot Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
27c0485de1
13
efivar.spec
13
efivar.spec
@ -1,6 +1,6 @@
|
|||||||
Name: efivar
|
Name: efivar
|
||||||
Version: 38
|
Version: 38
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Tools and libraries to work with EFI variables
|
Summary: Tools and libraries to work with EFI variables
|
||||||
License: LGPL-2.1-only
|
License: LGPL-2.1-only
|
||||||
URL: https://github.com/rhboot/%{name}
|
URL: https://github.com/rhboot/%{name}
|
||||||
@ -41,7 +41,10 @@ Development titles to use libefivar must be included.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export LDFLAGS="-flto-partition=none"
|
export LDFLAGS="-flto-partition=none"
|
||||||
%make_build
|
%if "%{?toolchain}" == "clang"
|
||||||
|
%global make_opts CC=clang CXX=clang++
|
||||||
|
%endif
|
||||||
|
%make_build %{?make_opts}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@ -74,6 +77,12 @@ install -m 0644 src/abignore %{buildroot}%{_includedir}/efivar/.abignore
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 1 2024 luofeng13 <luofeng13@huawei.com> - 38-5
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:support clang build
|
||||||
|
|
||||||
* Wed Mar 13 2024 zhouyihang <zhouyihang3@h-partners.com> - 38-4
|
* Wed Mar 13 2024 zhouyihang <zhouyihang3@h-partners.com> - 38-4
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user