mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
ci: Enable install_libseccomp.sh
for riscv64
`musl` target is not yet available for riscv64 as of 1.80.0 rust toolchain, set `FORTIFY_SOURCE` to 1 on riscv64 platforms. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
parent
0f2c0d38f5
commit
7f9b2c0af1
@ -44,9 +44,11 @@ fi
|
|||||||
gperf_tarball="gperf-${gperf_version}.tar.gz"
|
gperf_tarball="gperf-${gperf_version}.tar.gz"
|
||||||
gperf_tarball_url="${gperf_url}/${gperf_tarball}"
|
gperf_tarball_url="${gperf_url}/${gperf_tarball}"
|
||||||
|
|
||||||
# We need to build the libseccomp library from sources to create a static library for the musl libc.
|
# We need to build the libseccomp library from sources to create a static
|
||||||
# However, ppc64le and s390x have no musl targets in Rust. Hence, we do not set cflags for the musl libc.
|
# library for the musl libc.
|
||||||
if [[ "${arch}" != "ppc64le" ]] && [[ "${arch}" != "s390x" ]]; then
|
# However, ppc64le, riscv64 and s390x have no musl targets in Rust. Hence, we do
|
||||||
|
# not set cflags for the musl libc.
|
||||||
|
if [[ "${arch}" != "ppc64le" ]] && [[ "${arch}" != "riscv64" ]] && [[ "${arch}" != "s390x" ]]; then
|
||||||
# Set FORTIFY_SOURCE=1 because the musl-libc does not have some functions about FORTIFY_SOURCE=2
|
# Set FORTIFY_SOURCE=1 because the musl-libc does not have some functions about FORTIFY_SOURCE=2
|
||||||
cflags="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2"
|
cflags="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user