User Tools

Site Tools


qLinux
… a distribution study


<< Prev
E2fsprogs-1.46.4

Next >>
TZ Database 2021e


Openssl-1.1.1l

Reference: 8.49. OpenSSL-1.1.1l. Openssl is required to build the Linux kernel. Fix the build system:

patch -Np1 -i openssl-1.1.1l-bld.patch

Apply a patch to fix the sources:

patch -Np1 -i openssl-1.1.1l-src.patch

Configure the package:

HASHBANGPERL="/qlnx/bin/env perl" \
./config --prefix=/libs \
         --openssldir=/libs/etc/ssl \
         shared \
         zlib-dynamic

Build, test and install openssl:

make
make test
make install_sw

make install_sw
    Do NOT install any documentation (man pages).

Correct the pkgconfig files (include):

sed -i '/^includedir/s|/include|/inc|g' /libs/lib/pkgconfig/libssl.pc /libs/lib/pkgconfig/libcrypto.pc /libs/lib/pkgconfig/openssl.pc

Openssl installs more then thousand man(3) files. Usually nobody will use them. To not waste space with useless man pages remove them:

for f in `find -L /libs/man/man3` ; do
  [ -e $f ] && [ -f $f ] && grep -q '^\.TH.*OpenSSL' $f && rm $f
  [ ! -e $f ] && rm -f $f
done

If desired move the pkg-config files to the more proper locations:

mv -v /libs/lib/pkgconfig/libcrypto.pc /libs/lib/pkgconfig/libssl.pc /libs/lib/pkgconfig/openssl.pc /plng/lib/pkgconfig

<< Prev
E2fsprogs-1.46.4

Next >>
TZ Database 2021e