!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:
openeuler-ci-bot 2024-04-08 06:12:21 +00:00 committed by Gitee
commit 27c0485de1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: efivar
Version: 38
Release: 4
Release: 5
Summary: Tools and libraries to work with EFI variables
License: LGPL-2.1-only
URL: https://github.com/rhboot/%{name}
@ -41,7 +41,10 @@ Development titles to use libefivar must be included.
%build
export LDFLAGS="-flto-partition=none"
%make_build
%if "%{?toolchain}" == "clang"
%global make_opts CC=clang CXX=clang++
%endif
%make_build %{?make_opts}
%install
%make_install
@ -74,6 +77,12 @@ install -m 0644 src/abignore %{buildroot}%{_includedir}/efivar/.abignore
%{_mandir}/man3/*
%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
- Type:bugfix
- ID:NA