`-L` parts are not returned

Paul Menzel paulepanter at users.sourceforge.net
Sat Mar 26 03:32:33 PDT 2011


[Please CC me on replies.]


Dear pkg-config folks,


I am experiencing the following problem which I already reported as
ticket #619254 in the Debian BTS [1].

The `-L` part is not returned. From the manual:

       --libs This option is identical to "--cflags", only it prints the  link
              flags. As with "--cflags", duplicate flags are merged (maintain‐
              ing proper ordering), and flags for dependencies are included in
              the output.

       --libs-only-L
              This  prints the -L/-R part of "--libs". That is, it defines the
              library search path but doesn't specify which libraries to  link
              with

Here is an example.

	$ more /usr/lib/pkgconfig/libass.pc 
	prefix=/usr
	exec_prefix=${prefix}
	libdir=${exec_prefix}/lib
	includedir=${prefix}/include

	Name: libass
	Description: LibASS is an SSA/ASS subtitles rendering library
	Version: 0.9.9
	Requires.private: fontconfig >= 2.2.0, enca, freetype2 >= 9.6.3
	Libs: -L${libdir} -lass
	Libs.private: -lm
	Cflags: -I${includedir}
	$ pkg-config --libs libass
	-lass
	$ pkg-config --libs-only-L libass

	$ pkg-config --version
	0.25

What am I missing? Should not also `-L/usr/lib/` be returned? I could
also reproduce this with pkg-config 0.23 found in OpenEmbedded.


Thanks,

Paul


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619254
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20110326/bc5aef79/attachment.pgp>


More information about the pkg-config mailing list