From 6702b979354ec4ee8737b5aaba0c2d5e3ed8fd2b Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 27 May 2010 22:43:04 +0200 Subject: [PATCH] Document pc_path a bit --- pkg-config.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg-config.1 b/pkg-config.1 index decf51f..109cf5e 100644 --- a/pkg-config.1 +++ b/pkg-config.1 @@ -274,7 +274,7 @@ Don't strip -L/usr/lib out of libs .TP .I "PKG_CONFIG_SYSROOT_DIR" Modify -I and -L to use the directories located in target sysroot. -this option is usefull when crosscompiling package that use pkg-config +this option is useful when crosscompiling package that use pkg-config to determine CFLAGS anf LDFLAGS. -I and -L are modified to point to the new system root. this means that a -I/usr/include/libfoo will become -I/var/target/usr/include/libfoo with a PKG_CONFIG_SYSROOT_DIR @@ -283,6 +283,15 @@ equal to /var/target (same rule apply to -L) .I "PKG_CONFIG_LIBDIR" Replaces the default \fIpkg-config\fP search directory, usually \fI/usr/lib/pkgconfig\fP .\" +.SH QUERYING PKG-CONFIG'S DEFAULTS +.I pkg-config\fP can be used to query itself for the default search path, version number and other information, for instance using: +.nf + $ pkg-config --variable pc_path pkg-config +.fi +or +.nf + $ pkg-config --modversion pkg-config +.fi .SH WINDOWS SPECIALITIES If a .pc file is found in a directory that matches the usual conventions (i.e., ends with \\lib\\pkgconfig or \\share\\pkgconfig),