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.4 platform.
Pkg-config is part of LFS, but was omitted from the 7.0 and 7.1 releases. If you are using a system which includes it, there is nothing more to do. If not, you should follow these instructions.
Download (HTTP): http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
Download MD5 sum: aa3c86e67551adc3ac865160e34a2a0d
Download size: 1.9 MB
Estimated disk space required: 30 MB
Estimated build time: 0.3 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pkgconfig
Install pkg-config by running the following commands:
./configure --prefix=/usr \
--with-internal-glib \
--disable-host-tool \
--docdir=/usr/share/doc/pkg-config-0.28 &&
make
To test the results, issue: make check.
Now, as the root user:
make install
--with-internal-glib: This switch
causes the package to use the shipped version of GLib2.
--disable-host-tool: This switch
disables creation of the unnecessary symlink.
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.
Last updated on 2013-09-03 12:08:19 -0700