summaryrefslogtreecommitdiff
path: root/pkg-config.1
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2010-05-27 22:43:04 +0200
committerTollef Fog Heen <tfheen@err.no>2010-05-27 22:43:04 +0200
commit6702b979354ec4ee8737b5aaba0c2d5e3ed8fd2b (patch)
treedcbbb2e532b15fd5e01796fb2966de79c614e65b /pkg-config.1
parent4c6ff1c3d5dfe60a4f37c8ba11c080054101a3b0 (diff)
Document pc_path a bit
Diffstat (limited to 'pkg-config.1')
-rw-r--r--pkg-config.111
1 files changed, 10 insertions, 1 deletions
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),