diff --git a/ci/install_libseccomp.sh b/ci/install_libseccomp.sh index a18ce72686..4bcc618592 100755 --- a/ci/install_libseccomp.sh +++ b/ci/install_libseccomp.sh @@ -44,9 +44,11 @@ fi gperf_tarball="gperf-${gperf_version}.tar.gz" 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. -# However, ppc64le and s390x have no musl targets in Rust. Hence, we do not set cflags for the musl libc. -if [[ "${arch}" != "ppc64le" ]] && [[ "${arch}" != "s390x" ]]; then +# We need to build the libseccomp library from sources to create a static +# library for the musl libc. +# 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 cflags="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2" fi