Skip to content

Commit 32d1a4b

Browse files
committed
Use -fvisibility=hidden for libunwind
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.
1 parent f8d394e commit 32d1a4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/libunwind/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ mod llvm_libunwind {
8989
cfg.flag("-fno-rtti");
9090
cfg.flag("-fstrict-aliasing");
9191
cfg.flag("-funwind-tables");
92+
cfg.flag("-fvisibility=hidden");
9293
}
9394

9495
let mut unwind_sources = vec![

0 commit comments

Comments
 (0)