This commit is contained in:
2026-03-20 14:33:48 +01:00
parent bb5f9d05b3
commit 784d11d4f5
2 changed files with 45 additions and 0 deletions

View File

@@ -2,6 +2,27 @@
---
## V44 2026-03-21 01:30:00
**Fix zlib chicken-and-egg: bootstrap host libz.so.1 into chroot before building**
### Changes:
- Updated `023a-chroot-build-all.sh`: Before entering the chroot, copies the host
system's `libz.so.1` into `$LFS/usr/lib/`. This breaks the circular dependency:
ld needs libz.so.1 → can't link without it → can't build zlib without linking.
The temporary copy lets ld work, so zlib's configure tests pass, and the real
zlib build (024a-zlib.sh) replaces the temporary copy with a proper one.
### Plan deviation/changes:
- None
### What is missing/needs polish:
- The host-copied libz.so.1 is a temporary hack. It gets replaced by the real
zlib build immediately. If the host doesn't have zlib, the user needs to
install it first (pacman -S zlib on Arch).
---
## V43 2026-03-21 01:15:00
**Add zlib build to chroot phase — ld needs libz.so.1 at runtime**