Skip to content

Commit

Permalink
Remove LTO for static function wrappers.
Browse files Browse the repository at this point in the history
LTO doesn't works good with rust-lld.
Removed it to fix the link issue fortanix#304.
  • Loading branch information
xiaoyuxlu committed Aug 11, 2023
1 parent c274ee9 commit 0f540ba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mbedtls-sys/build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ impl BuildConfig {
cc.flag("-ffreestanding");
}
cc
.flag_if_supported("-flto=thin")
.file(&self.static_wrappers_c)
.compile("libstatic-wrappers.a");
}
Expand Down

0 comments on commit 0f540ba

Please sign in to comment.