1.23. tmp zlib-1.2.11
This package is not added to temporary system at stage1 in original LFS.
We add it for another essential build tools.
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License.
Configuration
src_config() { ./configure \ --prefix=${PREFIX} }
Compilation
src_compile() { make ${MAKEOPTS} }
Installation
The string with ause calls means the block after will be performed, if the project uses installation into root prefix / and at the same time does not use tools technology for tmp system.
src_install() { make install ${MAKEOPTS} DESTDIR=${D} if ! ause 'tools' && ause 'rootprefix' ; then mkdir -p ${D}/lib/ mv ${D}${PREFIX}/lib/libz.so.* ${D}/lib/ ln -sf ../../lib/$(readlink ${D}${PREFIX}/lib/libz.so) ${D}${PREFIX}/lib/libz.so fi }
Unit testing
src_check() { make check }
Links
- url.lfs: https://linuxfromscratch.org/lfs/view/11.1/chapter08/zlib.html
- url.lfs.stage1: