commit e089d21439c7fba18fc33dfd516af6421e92240c (tree)
parent e37fc574954c26a2240ea22bcd3de6ec957e0b79
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Wed, 13 Aug 2025 08:39:45 +0200
freebsd: fix PIC macro not being defined for crt1_s.S
Closes #24818.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libs/freebsd.zig b/src/libs/freebsd.zig
@@ -81,7 +81,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
"-O2",
"-fno-common",
"-std=gnu99",
- "-DPIC",
"-w", // Disable all warnings.
});
@@ -98,6 +97,7 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
inline for (.{ &cflags, &acflags }) |flags| {
try flags.appendSlice(&.{
+ "-DPIC",
"-DSTRIP_FBSDID",
"-I",
try includePath(comp, arena, try std.fmt.allocPrint(arena, "{s}-{s}-{s}", .{