fix RISC-V build errors
This commit is contained in:
parent
49e51df2c6
commit
d2032fa1c8
14
lxc.spec
14
lxc.spec
@ -1,4 +1,4 @@
|
||||
%global _release 2022102410
|
||||
%global _release 2022102411
|
||||
|
||||
Name: lxc
|
||||
Version: 4.0.3
|
||||
@ -37,6 +37,9 @@ BuildRequires: systemd-units git libtool graphviz docbook2X doxygen chrpath
|
||||
BuildRequires: pkgconfig(libseccomp)
|
||||
BuildRequires: libcap libcap-devel libselinux-devel yajl yajl-devel
|
||||
BuildRequires: pkgconfig(bash-completion)
|
||||
%ifarch riscv64
|
||||
BuildRequires: libatomic_ops
|
||||
%endif
|
||||
|
||||
Requires: lxc-libs = 4.0.3-%{release}
|
||||
|
||||
@ -89,6 +92,9 @@ This package contains documentation for lxc for creating containers.
|
||||
%autosetup -n lxc-4.0.3 -Sgit -p1
|
||||
|
||||
%build
|
||||
%ifarch riscv64
|
||||
export LDFLAGS="%{build_ldflags} -latomic -pthread"
|
||||
%endif
|
||||
%configure --enable-doc --enable-api-docs \
|
||||
--disable-silent-rules --docdir=%{_pkgdocdir} --disable-rpath \
|
||||
--disable-static --disable-apparmor --enable-selinux \
|
||||
@ -212,6 +218,12 @@ rm -rf %{buildroot}%{_sysconfdir}/default/%{name}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Feb 22 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.0.3-2022102411
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: fix RISC-V build errors
|
||||
|
||||
* Fri Feb 17 2023 zhangxiaoyu<zhangxiaoyu58@huawei.com> - 4.0.3-2022102410
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user