mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-20 02:10:46 +00:00
virtiofsd: export env vars needed for building it
@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 <fabiano.fidencio@intel.com>
This commit is contained in:
parent
ae911d0cd3
commit
9773838c01
@ -71,11 +71,11 @@ build_virtiofsd_from_source() {
|
|||||||
git clone --depth 1 --branch ${virtiofsd_version} ${virtiofsd_url} virtiofsd
|
git clone --depth 1 --branch ${virtiofsd_version} ${virtiofsd_url} virtiofsd
|
||||||
pushd virtiofsd
|
pushd virtiofsd
|
||||||
|
|
||||||
RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes'
|
export RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes'
|
||||||
LIBSECCOMP_LINK_TYPE=static
|
export LIBSECCOMP_LINK_TYPE=static
|
||||||
LIBSECCOMP_LIB_PATH=/usr/lib/${ARCH_LIBC}
|
export LIBSECCOMP_LIB_PATH=/usr/lib/${ARCH_LIBC}
|
||||||
LIBCAPNG_LINK_TYPE=static
|
export LIBCAPNG_LINK_TYPE=static
|
||||||
LIBCAPNG_LIB_PATH=/usr/lib/${ARCH_LIBC}
|
export LIBCAPNG_LIB_PATH=/usr/lib/${ARCH_LIBC}
|
||||||
|
|
||||||
cargo build --release --target ${ARCH}-unknown-linux-${LIBC}
|
cargo build --release --target ${ARCH}-unknown-linux-${LIBC}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user