10.45. Pkg-config-lite-0.28-1

Pkg-config-lite is a tool to help you insert the correct compiler options on the command line when compiling applications and libraries.

10.45.1. Installation of Pkg-config-lite

Prepare Pkg-config-lite for compilation:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --docdir=/usr/share/doc/pkg-config-0.28-1 --with-pc-path=/usr/share/pkgconfig

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

On multilib builds the library direcory has been removed from the default search path of pkg-config. Set some environment variables to help set the path correctly in the future:

export PKG_CONFIG_PATH32="/usr/lib/pkgconfig"
export PKG_CONFIG_PATHN32="/usr/lib32/pkgconfig"
export PKG_CONFIG_PATH64="/usr/lib64/pkgconfig"

Export these variables to prevent any issues in the future.

cat >> ${CLFS}/root/.bash_profile << EOF
export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}"
export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}"
export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}"
EOF

10.45.2. Contents of Pkg-config-lite

Installed programs: pkg-config
Installed directory: /usr/share/doc/pkg-config-0.28-1

Short Descriptions

pkg-config

The pkg-config program is used to retrieve information about installed libraries in the system. It is typically used to compile and link against one or more libraries.