Beyond Linux From Scratch - Version 6.2.0

Part III. General Libraries and Utilities

Graphics and Font Libraries

Depending on what your system will be used for, you may or may not
require the graphics and font libraries. Most desktop machines will
want them for use with graphical applications. Most servers on the
other hand, will not require them.

libjpeg-6b

Introduction to libjpeg

The libjpeg package contains
libraries that allow compression of image files based on the
Joint Photographic Experts Group standard. It is a "lossy"
compression algorithm.

Installation of libjpeg

Command Explanations

--enable-static
--enable-shared: These switches tell libjpeg to build both shared and static
libraries.

Configuring libjpeg

Configuration
Information

As with most libraries, there is no configuration to do, save
that the library directory, i.e., /opt/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries.
After checking that this is the case, /sbin/ldconfig should be run while
logged in as root.