From 9773838c01a180e593d0970a954ba6586e78487e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 26 May 2022 11:53:20 +0200 Subject: [PATCH] virtiofsd: export env vars needed for building it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @jongwu, mentioned on an PR[0] that env vars should be exported to ensure that virtiofsd is statically built for non-x86_64 architectures. [0]: https://github.com/kata-containers/kata-containers/pull/4308#issuecomment-1137125592 Signed-off-by: Fabiano FidĂȘncio --- .../static-build/virtiofsd/build-static-virtiofsd.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/packaging/static-build/virtiofsd/build-static-virtiofsd.sh b/tools/packaging/static-build/virtiofsd/build-static-virtiofsd.sh index 28124fa77..30eb14a95 100755 --- a/tools/packaging/static-build/virtiofsd/build-static-virtiofsd.sh +++ b/tools/packaging/static-build/virtiofsd/build-static-virtiofsd.sh @@ -71,11 +71,11 @@ build_virtiofsd_from_source() { git clone --depth 1 --branch ${virtiofsd_version} ${virtiofsd_url} virtiofsd pushd virtiofsd - RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes' - LIBSECCOMP_LINK_TYPE=static - LIBSECCOMP_LIB_PATH=/usr/lib/${ARCH_LIBC} - LIBCAPNG_LINK_TYPE=static - LIBCAPNG_LIB_PATH=/usr/lib/${ARCH_LIBC} + export RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes' + export LIBSECCOMP_LINK_TYPE=static + export LIBSECCOMP_LIB_PATH=/usr/lib/${ARCH_LIBC} + export LIBCAPNG_LINK_TYPE=static + export LIBCAPNG_LIB_PATH=/usr/lib/${ARCH_LIBC} cargo build --release --target ${ARCH}-unknown-linux-${LIBC}