pkg-config-0.21, Requires.private items Required even when not
using --static
Rex Dieter
rdieter at math.unl.edu
Wed Jan 24 05:31:06 PST 2007
Rex Dieter wrote:
> Using pkg-config-0.21 (on Fedora Core 6), I have /usr/lib/pkgconfig/foo.pc
> containing:
>
> ##############
> prefix=/usr
> exec_prefix=/usr
> libdir=/usr/lib
> includedir=/usr/include
>
> Name: foo
> Description: fof Library
> Version: 1.0
> Requires.private: bar
> Cflags: -I${includedir}
> Libs: -L${libdir} -lfoo
> ##################
>
> $ pkg-config --libs foo
> Package bar was not found in the pkg-config search path.
> Perhaps you should add the directory containing `bar.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'bar', required by 'foo', not found
>
> Shouldn't Libs.private and Requires.private be ignored and not be used
> when/if one doesn't use
> $ pkg-config --static
> ?
Searching bugzilla, found this issue to be already reported,
http://bugs.freedesktop.org/show_bug.cgi?id=4738
with patch supplied. Sadly, the original report is over a year old.
-- Rex
More information about the pkg-config
mailing list