pkg-config-0.21, Requires.private items Required even when not using --static

Rex Dieter rdieter at math.unl.edu
Wed Jan 24 05:17:04 PST 2007


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
?

-- Rex


More information about the pkg-config mailing list