Commit e527e3f
committed
build: make the Zig static lib position-independent (PIC)
The static lib's code had absolute relocations (R_X86_64_32S against
character_map), so linking it into a PIE executable failed on Linux
('can not be used when making a PIE object') — which broke test-ffi-cli on
Garnix and would break any Linux FFI consumer building a default PIE binary.
Set .pic = true on the static-lib module. (Masked on darwin by its reloc model.)1 parent 29f27fb commit e527e3f
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
0 commit comments