Tunsafe 静态编译x64备忘
备忘
git clone https://github.com/TunSafe/TunSafe.git
cd TunSafe
#
CURARGS="-static -s -static-libgcc -g0 -Os -DNDEBUG"
CXX=/mmx64/bin/x86_64-linux-musl-g++
$CXX -c -march=skylake-avx512 crypto/poly1305/poly1305-x64-linux.s crypto/chacha20/chacha20-x64-linux.s
$CXX -I . $CURARGS -DWITH_NETWORK_BSD=1 -mssse3 -pthread -lrt -o tunsafe \
tunsafe_amalgam.cpp \
crypto/aesgcm/aesni_gcm-x64-linux.s \
crypto/aesgcm/aesni-x64-linux.s \
crypto/aesgcm/ghash-x64-linux.s \
chacha20-x64-linux.o \
poly1305-x64-linux.o \
上一篇 : orangpi_one备忘 没有下一篇