summaryrefslogtreecommitdiff
path: root/pkg-config.1
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2013-04-10 17:59:35 -0700
committerDan Nicholson <dbn.lists@gmail.com>2013-05-17 05:13:14 -0700
commit409ee76ce1ba3372f34ca4d14b629bd8ad8347e1 (patch)
treebf92d1d51cb3cb4544d3229ac336c409fa863c9e /pkg-config.1
parent636e804ded087d01378cf69598e237700f9376eb (diff)
downloadpkg-config-409ee76ce1ba3372f34ca4d14b629bd8ad8347e1.tar.gz
Allow more control of redefined prefix behavior
Currently the native Win32 builds default to redefining the prefix variable in .pc files based on their installation paths. This behavior is not always desired when pkg-config is being used in a traditional fixed path environment (e.g., /mingw like /usr). Allow the default to be set via configure switch --enable/disable-define-prefix, and allow it to be set both ways at runtime through the --[dont-]define-prefix pkg-config option.
Diffstat (limited to 'pkg-config.1')
-rw-r--r--pkg-config.119
1 files changed, 14 insertions, 5 deletions
diff --git a/pkg-config.1 b/pkg-config.1
index c5d87d3..201b473 100644
--- a/pkg-config.1
+++ b/pkg-config.1
@@ -208,14 +208,23 @@ prints \fIfoo.lib\fP. Note that the --libs output consists of flags
for the linker, and should be placed on the cl command line after a
/link switch.
.TP
+.I "--define-prefix"
+.TQ
.I "--dont-define-prefix"
-This option is available only on Windows. It prevents \fIpkg-config\fP
-from automatically trying to override the value of the variable
-"prefix" in each .pc file.
+These options are available only on Windows. They control whether
+.I pkg-config
+overrides the value of the variable "prefix" in each .pc file. With
+\-\-define-prefix,
+.I pkg-config
+uses the installed location of the .pc file to determine the
+prefix. \-\-dont-define-prefix prevents this behavior. The default is
+usually \-\-define-prefix.
.TP
.I "--prefix-variable=PREFIX"
-Also this option is available only on Windows. It sets the name of the
-variable that \fIpkg-config\fP automatically sets as described above.
+This option is available only on Windows. It sets the name of the
+variable that
+.I pkg-config
+overrides instead of "prefix" when using the \-\-define-prefix feature.
.TP
.I "--static"
Output libraries suitable for static linking. That means including