authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-13 08:39:45+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-13 08:40:56+02:00
loge089d21439c7fba18fc33dfd516af6421e92240c
tree39437a4285aa7f2f18dce6aa13daa02a57b2a28c
parente37fc574954c26a2240ea22bcd3de6ec957e0b79
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

freebsd: fix PIC macro not being defined for crt1_s.S

Closes #24818.

1 files changed, 1 insertions(+), 1 deletions(-)

src/libs/freebsd.zig+1-1
......@@ -81,7 +81,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
8181 "-O2",
8282 "-fno-common",
8383 "-std=gnu99",
84 "-DPIC",
8584 "-w", // Disable all warnings.
8685 });
8786
......@@ -98,6 +97,7 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
9897
9998 inline for (.{ &cflags, &acflags }) |flags| {
10099 try flags.appendSlice(&.{
100 "-DPIC",
101101 "-DSTRIP_FBSDID",
102102 "-I",
103103 try includePath(comp, arena, try std.fmt.allocPrint(arena, "{s}-{s}-{s}", .{