mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
This makes it so that objects and static libraries produced by Zig can be linked into PIEs and shared libraries by default. This matches how almost all C/C++ toolchains are configured in Linux/BSD distros today. For cases where the user knows better and wants to squeeze out some (usually very minor) extra performance, they can just explicitly disable PIC when producing the object or static library.
547 lines
20 KiB
547 lines
20 KiB