about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-05-06 16:59:00 +0200
committerGitHub <noreply@github.com>2020-05-06 16:59:00 +0200
commitc366b27bfcf05c92d55d5aeaecbc0b0c5f26b638 (patch)
treedba4ee0badb34902a30fcff683ba2aafcb5418c5
parentd30988e54849b036c7714b1b5f9d97f5c5f71631 (diff)
parent32d1a4b025716727bb9b350fcbddaad16ee1ab17 (diff)
Rollup merge of #71929 - petrhosek:unwind-visibility, r=tmandry
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.
-rw-r--r--src/libunwind/build.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libunwind/build.rs b/src/libunwind/build.rs
index c8d2419ab45..1462639259c 100644
--- a/src/libunwind/build.rs
+++ b/src/libunwind/build.rs
@@ -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![