Skip to content

Commit

Permalink
Use -fvisibility=hidden for libunwind
Browse files Browse the repository at this point in the history
We don't want to export any symbols from Rust's version of libunwind
as these may collide with other copies of libunwind e.g. when linking
Rust staticlib together C/C++ libraries that have their own version.
  • Loading branch information
petrhosek committed May 5, 2020
1 parent f8d394e commit 32d1a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libunwind/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ mod llvm_libunwind {
cfg.flag("-fno-rtti");
cfg.flag("-fstrict-aliasing");
cfg.flag("-funwind-tables");
cfg.flag("-fvisibility=hidden");
}

let mut unwind_sources = vec![
Expand Down

0 comments on commit 32d1a4b

Please sign in to comment.