pkg-config-0.26

Introduction to pkg-config

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.

This package is known to build and work properly using an LFS-7.0 platform.

Package Information

Pkg-config Dependencies

Required

GLib-2.30.1

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pkgconfig

Installation of 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

Install pkg-config by running the following commands:

GLIB_LIBS=-lglib-2.0  GLIB_CFLAGS=-I/usr/include/glib-2.0  \
./configure --prefix=/usr &&
make
[Note]

Note

The make phase is known to fail if the configure option '--with-installed-popt' is used with popt-1.16.

To test the results, issue: make check.

Now, as the root user:

make install

Configuring pkg-config

The default setting for PKG_CONFIG_PATH is /usr/lib/pkgconfig:/usr/share/pkgconfig because of the prefix used to install pkg-config. You may add to PKG_CONFIG_PATH by exporting additional paths on your system where .pc files are installed. Note that PKG_CONFIG_PATH is only needed when compiling packages, not during run-time.

Contents

Installed Program: pkg-config
Installed Libraries: None
Installed Directories: None

Short Descriptions

pkg-config

returns meta information for the specified library or package.

Last updated on 2011-11-04 22:01:54 +0000