| ... | @@ -81,7 +81,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre | ... | @@ -81,7 +81,6 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre |
| 81 | "-O2", | 81 | "-O2", |
| 82 | "-fno-common", | 82 | "-fno-common", |
| 83 | "-std=gnu99", | 83 | "-std=gnu99", |
| 84 | "-DPIC", | | |
| 85 | "-w", // Disable all warnings. | 84 | "-w", // Disable all warnings. |
| 86 | }); | 85 | }); |
| 87 | | 86 | |
| ... | @@ -98,6 +97,7 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre | ... | @@ -98,6 +97,7 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre |
| 98 | | 97 | |
| 99 | inline for (.{ &cflags, &acflags }) |flags| { | 98 | inline for (.{ &cflags, &acflags }) |flags| { |
| 100 | try flags.appendSlice(&.{ | 99 | try flags.appendSlice(&.{ |
| | 100 | "-DPIC", |
| 101 | "-DSTRIP_FBSDID", | 101 | "-DSTRIP_FBSDID", |
| 102 | "-I", | 102 | "-I", |
| 103 | try includePath(comp, arena, try std.fmt.allocPrint(arena, "{s}-{s}-{s}", .{ | 103 | try includePath(comp, arena, try std.fmt.allocPrint(arena, "{s}-{s}-{s}", .{ |