aboutsummaryrefslogtreecommitdiff
path: root/src/libunwind.zig
diff options
context:
space:
mode:
authorxavier <xavierb@gmail.com>2021-05-23 16:53:47 +0200
committerxavier <xavierb@gmail.com>2021-05-23 19:58:38 +0200
commita6e65f3a0ea4f8315be50f91338e4526b006f9d8 (patch)
treedebe95e917c255012bb755354fff2d2fd34bcb31 /src/libunwind.zig
parent40d8518253c2566fe9ba947c2e1fbce160a55940 (diff)
downloadzig-a6e65f3a0ea4f8315be50f91338e4526b006f9d8.tar.gz
zig-a6e65f3a0ea4f8315be50f91338e4526b006f9d8.zip
keep statically linked libc++ symbols hidden.
Diffstat (limited to 'src/libunwind.zig')
-rw-r--r--src/libunwind.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libunwind.zig b/src/libunwind.zig
index 7e1fe3f9b7..d918249544 100644
--- a/src/libunwind.zig
+++ b/src/libunwind.zig
@@ -69,6 +69,8 @@ pub fn buildStaticLib(comp: *Compilation) !void {
}
try cflags.append("-D_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS");
try cflags.append("-Wa,--noexecstack");
+ try cflags.append("-fvisibility=hidden");
+ try cflags.append("-fvisibility-inlines-hidden");
// This is intentionally always defined because the macro definition means, should it only
// build for the target specified by compiler defines. Since we pass -target the compiler