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

Closes #24818.
This commit is contained in:
Alex Rønne Petersen 2025-08-13 08:39:45 +02:00
parent e37fc57495
commit e089d21439
No known key found for this signature in database

View file

@ -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}", .{