diff options
Diffstat (limited to 'src/libunwind.zig')
| -rw-r--r-- | src/libunwind.zig | 2 |
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 |
