pb with PKG_CONFIG_PATH & dependencies recursion
francois-xavier.kowalski at hp.com
Tue Oct 21 01:53:20 PDT 2008
I have noticed a pkg-config behavior difference, that I would qualify as
a bug: when PKG_CONFIG_PATH is not defined, pkg-config recurses into the
dependencies to establish complete LIBS & CFLAGS, whereas when
PKG_CONFIG_PATH is defined, it stops at the first level, not resolving
flags for dependencies.
For example, I have FFMPEG installed both in /usr (Fedora 8 package
coming from http://rpm.livna.org) and a custom-made one living into
/opt/OC (my app's $prefix).
% pkg-config --libs libavformat
-lavformat -lavcodec -lavutil
% env PKG_CONFIG_PATH=/opt/OC/lib64/pkgconfig
pkg-config --libs libavformat
I have tried with both pkg-config-0.22 that comes from Fedora (w/
patches) and using a vanilla 0.23 releases downloaded from your releases
site. The behavior is the same.
Is this a known issue? If yes, any work-around/patch available? I have
browsed the mail archive without finding a clue.
Thanks in advance for your help.
Francois-Xavier "FiX" KOWALSKI /_ __ Tel:+33 (0)4 76 14 63 27
Communication & Media - EMTS / //_/ Fax:+33 (0)4 76 14 51 62
Media-Processing Engineering / http://www.hp.com/go/opencall
i n v e n t
More information about the pkg-config