diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-01-20 20:06:25 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-01-20 20:59:52 -0800 |
| commit | 874e17fe608a7b8d4324dada32664fcfe44978cd (patch) | |
| tree | e1eda8b298b892eca8b75a9deb3acad52c01f481 /src/Compilation.zig | |
| parent | f5485a52bcd7495fb2be234695b4cea809f60581 (diff) | |
| download | zig-874e17fe608a7b8d4324dada32664fcfe44978cd.tar.gz zig-874e17fe608a7b8d4324dada32664fcfe44978cd.zip | |
embrace the future slightly less
Turns out that even modern Debian aarch64 glibc libc_nonshared.a has
references to _init, meaning that the previous commit caused a
regression when trying to build any -lc executable on that target.
This commit backs out the changes to LibCInstallation.
There is still a fork in the road coming up when the self-hosted ELF
linker becomes load bearing on that target.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index a1fdc4fd1a..b85033264a 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -6743,8 +6743,10 @@ fn getCrtPathsInner( return .{ .crt0 = if (basenames.crt0) |basename| try crtFilePath(crt_files, basename) else null, + .crti = if (basenames.crti) |basename| try crtFilePath(crt_files, basename) else null, .crtbegin = if (basenames.crtbegin) |basename| try crtFilePath(crt_files, basename) else null, .crtend = if (basenames.crtend) |basename| try crtFilePath(crt_files, basename) else null, + .crtn = if (basenames.crtn) |basename| try crtFilePath(crt_files, basename) else null, }; } |
