mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-05 02:40:18 +00:00
Merge pull request #5523 from BbolroC/s390x-virtiofsd
virtiofsd: Not use "link-self-contained=yes" on s390x
This commit is contained in:
@@ -47,6 +47,7 @@ pull_virtiofsd_released_binary() {
|
|||||||
init_env() {
|
init_env() {
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
extra_rust_flags=" -C link-self-contained=yes"
|
||||||
case ${ARCH} in
|
case ${ARCH} in
|
||||||
"aarch64")
|
"aarch64")
|
||||||
LIBC="musl"
|
LIBC="musl"
|
||||||
@@ -60,6 +61,7 @@ init_env() {
|
|||||||
"s390x")
|
"s390x")
|
||||||
LIBC="gnu"
|
LIBC="gnu"
|
||||||
ARCH_LIBC=${ARCH}-linux-${LIBC}
|
ARCH_LIBC=${ARCH}-linux-${LIBC}
|
||||||
|
extra_rust_flags=""
|
||||||
;;
|
;;
|
||||||
"x86_64")
|
"x86_64")
|
||||||
LIBC="musl"
|
LIBC="musl"
|
||||||
@@ -76,7 +78,7 @@ build_virtiofsd_from_source() {
|
|||||||
git clone --depth 1 --branch ${virtiofsd_version} ${virtiofsd_repo} virtiofsd
|
git clone --depth 1 --branch ${virtiofsd_version} ${virtiofsd_repo} virtiofsd
|
||||||
pushd virtiofsd
|
pushd virtiofsd
|
||||||
|
|
||||||
export RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes'
|
export RUSTFLAGS='-C target-feature=+crt-static'${extra_rust_flags}
|
||||||
export LIBSECCOMP_LINK_TYPE=static
|
export LIBSECCOMP_LINK_TYPE=static
|
||||||
export LIBSECCOMP_LIB_PATH=/usr/lib/${ARCH_LIBC}
|
export LIBSECCOMP_LIB_PATH=/usr/lib/${ARCH_LIBC}
|
||||||
export LIBCAPNG_LINK_TYPE=static
|
export LIBCAPNG_LINK_TYPE=static
|
||||||
|
Reference in New Issue
Block a user