udp-over-tcp/build-static-bins.sh
2023-12-20 10:43:43 +01:00

17 lines
496 B
Bash
Executable File

#!/usr/bin/env bash
#
# Use this script to compile the binaries statically linked for Linux
# and with logging enabled (controlled by RUST_LOG env var)
#
# You need the static version of glibc installed for this to work.
# On Fedora/RHEL that's: glibc-static.
# On Debian/Ubuntu that's: libc6-dev.
RUSTFLAGS="-C target-feature=+crt-static" \
cargo build --release \
--target x86_64-unknown-linux-gnu \
--features env_logger \
--features clap \
--features statsd \
--bins