| author | |
| committer | |
| log | b288f8c9a657b1c5a97e3e543d8598a9e749a390 |
| tree | a74212653aab1a3a6ad58aec4e7a07a3ba61941e |
| parent | 65ee7909b90fc593ffd1f89777ff019e824eafc9 |
This is required when cross-compiling glibc targets.1 files changed, 1 insertions(+), 3 deletions(-)
src/link/Elf.zig+1-3| ... | ... | @@ -1658,9 +1658,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void { |
| 1658 | 1658 | try argv.append("-lm"); |
| 1659 | 1659 | } |
| 1660 | 1660 | |
| 1661 | if (target.os.tag == .freebsd or target.os.tag == .netbsd or target.os.tag == .openbsd) { | |
| 1662 | try argv.append("-lpthread"); | |
| 1663 | } | |
| 1661 | try argv.append("-lpthread"); | |
| 1664 | 1662 | } else if (target.isGnuLibC()) { |
| 1665 | 1663 | try argv.append(comp.libunwind_static_lib.?.full_object_path); |
| 1666 | 1664 | for (glibc.libs) |lib| { |