mirror of
https://github.com/mullvad/udp-over-tcp.git
synced 2024-10-23 07:05:30 +08:00
17 lines
496 B
Bash
Executable File
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
|