Difference between revisions of "Pkg-config"

From CBLFS
Jump to navigationJump to search
(Multilib)
Line 37: Line 37:
  
 
  make install
 
  make install
 +
mv /usr/bin/pkg-config{,-32}
  
 
=== N32 ===
 
=== N32 ===
Line 59: Line 60:
  
 
  make install
 
  make install
 +
mv /usr/bin/pkg-config{,-64}
 +
ln -s multiarch_wapper /usr/bin/pkg-config
  
 
= Contents =
 
= Contents =

Revision as of 10:33, 12 April 2008

Download Source: http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.1.tar.gz

Introduction to Pkg-config

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

Project Homepage: http://pkgconfig.freedesktop.org/wiki/

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

This package does not provide any libraries so only one installation is needed.

--with-pc-path takes the libdir out of the default search path for .pc files. See the Bash Startup Files for help setting up a environment for use with this.

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
make

Install the package

make install
mv /usr/bin/pkg-config{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr  --with-pc-path=/usr/share/pkgconfig &&
make

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --with-pc-path=/usr/share/pkgconfig &&
make

Install the package

make install
mv /usr/bin/pkg-config{,-64}
ln -s multiarch_wapper /usr/bin/pkg-config

Contents

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

Short Descriptions

pkg-config returns meta information for the specified library or package.