diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2023-10-18 15:54:46 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-20 01:59:55 -0400 |
| commit | aa76ca2931d7adbc8ee3b33cdaa2cb1de1adda8a (patch) | |
| tree | 7d9d01dceab74371da65f0eee94c84f216866c79 /src/libunwind.zig | |
| parent | 5d8bc56ab67c01f9c1b6de6227356c1c74852464 (diff) | |
| download | zig-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.zig | 2 |
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, |
