8.27. Pkg-config-0.29.2

The pkg-config package contains a tool for passing the include path and/or library paths to build tools during the configure and make phases of package installations.

Approximate build time: 0.3 SBU
Required disk space: 30 MB

8.27.1. Installation of Pkg-config

Prepare Pkg-config for compilation:

./configure --prefix=/usr              \
            --with-internal-glib       \
            --disable-host-tool        \

The meaning of the new configure options:


This will allow pkg-config to use its internal version of Glib because an external version is not available in LFS.


This option disables the creation of an undesired hard link to the pkg-config program.

Compile the package:


To test the results, issue:

make check

Install the package:

make install

8.27.2. Contents of Pkg-config

Installed program: pkg-config
Installed directory: /usr/share/doc/pkg-config-0.29.2

Short Descriptions


Returns meta information for the specified library or package