From aa76ca2931d7adbc8ee3b33cdaa2cb1de1adda8a Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Wed, 18 Oct 2023 15:54:46 -0400 Subject: llvm: set PIE only for executables closes #17575 --- src/libunwind.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libunwind.zig') 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, -- cgit v1.2.3