dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

8 Commits

Author SHA1 Message Date
Mike Frysinger 16f6b49c87 Use config.status to generate pcap-config.
Rather than use a custom sed script to replace things in pcap-config,
use the already existing config.status script.  This keeps people from
having to update the Makefile.in every time they want to add a new var
to the file.

Also, clean up the pcap-config.in script a bit to set local vars at the
top of the file and then refer to those rather than replacing all things
through out.  This makes it easier to tweak on the fly as there is only
line to change rather than trying and figure out all the locations.

Reviewed-By: Guy Harris <guy@alum.mit.edu>
2010-11-30 16:06:14 -08:00
Guy Harris 7cd4949d49 Oops, close a quote. 2009-06-09 10:56:41 -07:00
Guy Harris db68de2198 Add a way to have pcap-config supply the appropriate rpath flag, if any. 2009-06-09 10:50:31 -07:00
Guy Harris 8fb603979c At least with some C compilers, "-Lfoo" is not the same as "-L foo" -
the former works, the latter doesn't.  Close up the space between "-L"
and the directory argument; do the same with "-I" while we're at it.
2009-06-07 17:54:01 -07:00
Guy Harris 95c97b9b6f Make ADDLOBJ be the list of additional objects to link in when building
a shared libpcap and add into the archive when making an archive
library.  Make V_LIBS in the configure script, and LIBS in the Makefile,
a list of additional libraries with which to link a shared libpcap and
with which to link applications built with a non-shared libpcap.
2009-05-22 16:14:08 -07:00
Guy Harris 4da1fd6159 Add a --additional-libs flag to pcap-config, to write out any additional
libraries needed to link with libpcap; this is to be used by tcpdump
when it's linking with ../libpcap/libpcap.a.
2009-05-22 16:04:25 -07:00
Guy Harris 91584dc5c5 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).
2009-03-27 00:41:53 -07:00
guy ad68762c8e Add a pcap-config script, to handle necessary -I/-L flags and any
libraries required by libpcap.
2008-09-23 18:04:01 +00:00