Index: BOOK/beyond/common/zlib.xml
===================================================================
--- BOOK/beyond/common/zlib.xml (revision 422ad1fe2fe44e6055a0269b782864963cdfc736)
+++ BOOK/beyond/common/zlib.xml (revision faf50d8a165e4dfc6177e46e8717c572f7497638)
@@ -46,7 +46,13 @@
make
- Install the package:
+ Install the package into the cross-tools:
make prefix=${CLFS}/cross-tools/${CLFS_TARGET} install
+
+ Copy only the shared library into the target file system and
+ ensure that its symlink is present so the runtime loader can find it:
+
+ cp -v ${CLFS}/cross-tools/${CLFS_TARGET}/lib/libz.so.&zlib-version; ${CLFS}/targetfs/lib/
+ln -sv libz.so.&zlib-version; ${CLFS}/targetfs/lib/libz.so.1