aboutsummaryrefslogtreecommitdiff
path: root/src/libunwind.zig
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2023-10-18 15:54:46 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-10-20 01:59:55 -0400
commitaa76ca2931d7adbc8ee3b33cdaa2cb1de1adda8a (patch)
tree7d9d01dceab74371da65f0eee94c84f216866c79 /src/libunwind.zig
parent5d8bc56ab67c01f9c1b6de6227356c1c74852464 (diff)
downloadzig-aa76ca2931d7adbc8ee3b33cdaa2cb1de1adda8a.tar.gz
zig-aa76ca2931d7adbc8ee3b33cdaa2cb1de1adda8a.zip
llvm: set PIE only for executables
closes #17575
Diffstat (limited to 'src/libunwind.zig')
-rw-r--r--src/libunwind.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunwind.zig b/src/libunwind.zig
index 589634763d..f0330a4e51 100644
--- a/src/libunwind.zig
+++ b/src/libunwind.zig
@@ -104,7 +104,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: *std.Progress.Node) !void {
.want_valgrind = false,
.want_tsan = false,
.want_pic = comp.bin_file.options.pic,
- .want_pie = comp.bin_file.options.pie,
+ .want_pie = null,
// Disable LTO to avoid https://github.com/llvm/llvm-project/issues/56825
.want_lto = false,
.function_sections = comp.bin_file.options.function_sections,