!525 [sync] PR-522: [平行宇宙] Disable ThinLTO when building with clang
From: @openeuler-sync-bot Reviewed-by: @xuxuepeng Signed-off-by: @xuxuepeng
This commit is contained in:
commit
1e4cd292e2
22
lxc.spec
22
lxc.spec
@ -1,5 +1,5 @@
|
|||||||
%global _release 13
|
%global _release 14
|
||||||
%global enable_isulad 1
|
%bcond isulad 1
|
||||||
|
|
||||||
Name: lxc
|
Name: lxc
|
||||||
Version: 5.0.2
|
Version: 5.0.2
|
||||||
@ -88,11 +88,13 @@ This package contains documentation for lxc for creating containers.
|
|||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
export LDFLAGS="%{build_ldflags} -latomic -pthread"
|
export LDFLAGS="%{build_ldflags} -latomic -pthread"
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?enable_isulad}
|
meson setup -Dtests=true \
|
||||||
meson setup -Disulad=true -Dtests=true -Dprefix=/usr build
|
%{?with_isulad:-Disulad=true} \
|
||||||
%else
|
%{!?with_isulad:-Disulad=false} \
|
||||||
meson setup -Disulad=false -Dtests=true -Dprefix=/usr build
|
%if "%{?toolchain}" == "clang"
|
||||||
|
-Db_lto=false \
|
||||||
%endif
|
%endif
|
||||||
|
-Dprefix=/usr build
|
||||||
meson compile -C build
|
meson compile -C build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -193,7 +195,7 @@ meson test -C build
|
|||||||
%{_datadir}/%{name}/config/*
|
%{_datadir}/%{name}/config/*
|
||||||
%dir %{_datadir}/%{name}/__pycache__
|
%dir %{_datadir}/%{name}/__pycache__
|
||||||
%{_datadir}/%{name}/__pycache__/*
|
%{_datadir}/%{name}/__pycache__/*
|
||||||
%if !0%{?enable_isulad}
|
%if %{without isulad}
|
||||||
%{_datadir}/%{name}/hooks
|
%{_datadir}/%{name}/hooks
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -212,6 +214,12 @@ meson test -C build
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Feb 26 2024 jikai<jikai11@huawei.com> - 5.0.2-13
|
||||||
- Type: bugfix
|
- Type: bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user