summaryrefslogtreecommitdiff
path: root/pcap-config.1
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-03-27 00:41:53 -0700
committerGuy Harris <gharris@steve.local>2009-03-27 00:41:53 -0700
commit91584dc5c5b3a2da2ad303fbe2b5b40567a19b22 (patch)
tree137ad3c7c28b73900cde3b905d73d462b3445f61 /pcap-config.1
parenta8284458d5c78ee2dae5b1fe1740464dffe1ba0e (diff)
downloadlibpcap-91584dc5c5b3a2da2ad303fbe2b5b40567a19b22.tar.gz
By default, don't include DEPLIBS in the libraries flags, as a
dynamically-linked libpcap should have been linked with them (if there are any of them), so it shouldn't be necessary for a program or library to explicitly link with them if it links with libpcap. Add a -static flag that includes DEPLIBS, as, on most if not all platforms, static libraries can't be linked with dynamic libraries, so programs would have to link with libraries on which libpcap depends if it links statically with libpcap. If both --cflags and --libs are given, print both sets of flags, on the same line (as pkg-config does).
Diffstat (limited to 'pcap-config.1')
-rw-r--r--pcap-config.111
1 files changed, 10 insertions, 1 deletions
diff --git a/pcap-config.1 b/pcap-config.1
index 0cac1054..aa20d0ce 100644
--- a/pcap-config.1
+++ b/pcap-config.1
@@ -20,13 +20,16 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH PCAP-CONFIG 1 "23 September 2008"
+.TH PCAP-CONFIG 1 "26 March 2009"
.SH NAME
pcap-config \- write libpcap compiler and linker flags to standard output
.SH SYNOPSIS
.na
.B pcap-config
[
+.B \-\-static
+]
+[
.B \-\-cflags | \-\-libs
]
.ad
@@ -50,5 +53,11 @@ and
linker required to link with libpcap, including
.B \-l
flags for libraries required by libpcap.
+.LP
+By default, it writes flags appropriate for compiling with a
+dynamically-linked version of libpcap; the
+.B \-\-static
+flag causes it to write flags appropriate for compiling with a
+statically-linked version of libpcap.
.SH "SEE ALSO"
pcap(3PCAP)