qLinux
… a distribution study


<< Prev
Musl libc

Next >>
Bzip


Zlib-1.2.11

Reference 8.6. Zlib-1.2.11. Fix  /bin/sh  to  /qlnx/bin/sh  in configure and Makefile.in. Run the following command to fix  /dev/null :

for f in `grep -snr '/dev/null' | cut -d: -f1` ; do sed -i '/qlnx/!s|/dev/null|/qlnx/dev/null|g' $f ; done

Alternative apply the related patch to fix this:

patch -Np1 -i zlib-1.2.11-qlinux-20220201.patch

This package builds and installs the common way:

./configure --prefix=/qlnx --includedir=/qlnx/inc
make
make install

zlib doesn't have an option for the man page, thus we move it to the proper location:

cp -vr /qlnx/share/man /qlnx
rm -rf /qlnx/share

Optional: Remove the usually useless static lib

rm -fv /linux/lib/libz.a

Verify  /qlnx/lib/pkgconfig/zlib.pc  and fix it accordingly if required.


<< Prev
Musl libc

        

Next >>
Bzip