Ethereal-users: Re: [ethereal-users] Get shared libpcap

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 27 Oct 1999 09:51:30 -0700
> I run into a silly problem. How could I create a shared version of
> libpcap? The Makefile just support the static version and ethereal needs
> the shared.

If you're building Ethereal from source, it shouldn't require a shared
"libpcap" library.

If you have a binary distribution of Ethereal, it may have been built
with a shared "libpcap" library.  Unfortunately, to build from LBL's
source a shared "libpcap" library, you'd have to tweak the Makefile by
hand, as their Makefile only generates a static library.  The way you'd
tweak it would be platform-dependent and compiler-dependent; for GCC,
adding "-fpic" to the flags for the commands that compile ".c"s into
".o"s would be part of the job, but you'd then have to replace the "ar"
that generates the archive library with the appropriate "cc"/"gcc" or
"ld" command to actually build a shared library, and I think that's
platform-dependent even if you're using GCC.