6.22. Pkg-config-0.26

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

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

6.22.1. Installation of Pkg-config

[Note]

Note

Pkg-Config will use an included version of Popt to parse command line options. If an external version of Popt is desired, install that version using the BLFS Popt build instructions before installing Pkg-config.

Fix a problem with one of Pkg-config's tests:

sed -i -e '21s/EXPECT_RETURN=1/EXPECT_RETURN=0/' check/check-cmd-options

Prepare Pkg-config for compilation:

GLIB_LIBS="-L/usr/lib -lglib-2.0" \
  GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
  ./configure --prefix=/usr

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

6.22.2. Contents of Pkg-config

Installed program: pkg-config

Short Descriptions

pkg-config

Returns meta information for the specified library or package.