MTD 248-645A Bedienungsanleitung Seite 116

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 347
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 115
Linux From Scratch - Version 7.0
96
6.11. Zlib-1.2.5
The Zlib package contains compression and decompression routines used by some programs.
Approximate build time: less than 0.1 SBU
Required disk space: 2.8 MB
6.11.1. Installation of Zlib
First, fix a typo in the package header file:
sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h
Prepare Zlib for compilation:
CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr
The meaning of the new configure environment variable:
CFLAGS='-mstackrealign -fPIC -O3'
Setting CFLAGS overrides the default optimization in the package to prevent some run time errors. Note that
the -mstackrealign may cause build failures in non-Intel architecture systems.
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install
The shared library needs to be moved to /lib, and as a result the .so file in /usr/lib will need to be recreated:
mv -v /usr/lib/libz.so.* /lib
ln -sfv ../../lib/libz.so.1.2.5 /usr/lib/libz.so
6.11.2. Contents of Zlib
Installed libraries: libz.{a,so}
Short Descriptions
libz Contains compression and decompression functions used by some programs
Seitenansicht 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 346 347

Kommentare zu diesen Handbüchern

Keine Kommentare