add a parameter for disabling LTO when building with clang & ld.bfd
Signed-off-by: jchzhou <zhoujiacheng@iscas.ac.cn> (cherry picked from commit 6e654b2fceb71e5152fa5aa0312a96c3ccd3a988)
This commit is contained in:
parent
f8b272a626
commit
d56fed59a5
22
lxc.spec
22
lxc.spec
@ -1,5 +1,5 @@
|
||||
%global _release 13
|
||||
%global enable_isulad 1
|
||||
%global _release 14
|
||||
%bcond isulad 1
|
||||
|
||||
Name: lxc
|
||||
Version: 5.0.2
|
||||
@ -88,11 +88,13 @@ This package contains documentation for lxc for creating containers.
|
||||
%ifarch riscv64
|
||||
export LDFLAGS="%{build_ldflags} -latomic -pthread"
|
||||
%endif
|
||||
%if 0%{?enable_isulad}
|
||||
meson setup -Disulad=true -Dtests=true -Dprefix=/usr build
|
||||
%else
|
||||
meson setup -Disulad=false -Dtests=true -Dprefix=/usr build
|
||||
meson setup -Dtests=true \
|
||||
%{?with_isulad:-Disulad=true} \
|
||||
%{!?with_isulad:-Disulad=false} \
|
||||
%if "%{?toolchain}" == "clang"
|
||||
-Db_lto=false \
|
||||
%endif
|
||||
-Dprefix=/usr build
|
||||
meson compile -C build
|
||||
|
||||
%install
|
||||
@ -193,7 +195,7 @@ meson test -C build
|
||||
%{_datadir}/%{name}/config/*
|
||||
%dir %{_datadir}/%{name}/__pycache__
|
||||
%{_datadir}/%{name}/__pycache__/*
|
||||
%if !0%{?enable_isulad}
|
||||
%if %{without isulad}
|
||||
%{_datadir}/%{name}/hooks
|
||||
%endif
|
||||
|
||||
@ -212,6 +214,12 @@ meson test -C build
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Mar 11 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 5.0.2-14
|
||||
- Type: bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: update meson parameters for disabling LTO when building with clang & ld.bfd
|
||||
|
||||
* Mon Feb 26 2024 jikai<jikai11@huawei.com> - 5.0.2-13
|
||||
- Type: bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user