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.
Download (HTTP): http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz
Download (FTP): ftp://mirror.ovh.net/gentoo-distfiles/distfiles/pkg-config-0.26.tar.gz
Download MD5 sum: 47525c26a9ba7ba14bf85e01509a7234
Download size: 392 KB
Estimated disk space required: 3 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pkgconfig
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
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
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 2011-11-04 22:01:54 +0000