Force PIC when building Zig builtins

This commit is contained in:
Richard Feldman 2023-06-21 09:06:35 -04:00
parent 44e48e1415
commit 9a7877cf29
No known key found for this signature in database
GPG key ID: CBD53FB13784937E

View file

@ -90,6 +90,7 @@ fn generateObjectFile(
obj.strip = true;
obj.target = target;
obj.link_function_sections = true;
obj.force_pic = true;
const obj_step = b.step(step_name, "Build object file for linking");
obj_step.dependOn(&obj.step);
}