From fef6a89ff97782e0ed098fc317a4c7c493629060 Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Fri, 28 Jun 2024 11:23:15 -0400 Subject: [PATCH] cmake_cfg.static_crt(true) --- aws-lc-sys/builder/cmake_builder.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/builder/cmake_builder.rs b/aws-lc-sys/builder/cmake_builder.rs index cfd3c33a5e3..b4914d1ebcd 100644 --- a/aws-lc-sys/builder/cmake_builder.rs +++ b/aws-lc-sys/builder/cmake_builder.rs @@ -67,9 +67,13 @@ impl CmakeBuilder { } fn get_cmake_config(&self) -> cmake::Config { - cmake::Config::new(&self.manifest_dir) + let mut cmake_cfg = cmake::Config::new(&self.manifest_dir); + // See issue: https://github.com/aws/aws-lc-rs/issues/453 + cmake_cfg.static_crt(true); + cmake_cfg } + #[allow(clippy::too_many_lines)] fn prepare_cmake_build(&self) -> cmake::Config { let mut cmake_cfg = self.get_cmake_config();