1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-11 14:25:57 +03:00

build static on windows for static openssl linkage

openssl-src will link openssl statically if the target feature
is set to crt-static, so let's do that.
This commit is contained in:
Wez Furlong 2020-02-02 09:33:14 -08:00
parent 274d22edda
commit 462e84f351

View File

@ -1,3 +1,9 @@
[target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-gcc"
ar = "x86_64-w64-mingw32-gcc-ar"
# We need openssl to be statically linked on windows to avoid madness,
# and openssl-src does that based on the crt-static feature being
# enabled for the target, so let's turn that on here.
[target.x86_64-pc-windows-msvc]
rustflags = "-C target-feature=+crt-static"