Ethereal-dev: Re: [ethereal-dev] way to build static?

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

From: Nathan Neulinger <nneul@xxxxxxx>
Date: Tue, 18 Jan 2000 16:51:11 -0600
Guy Harris wrote:
> 
> > It would be nice if one of you automake wizards could put in some way to
> > build ethereal staticly. I used to be able to simply edit the makefile and
> > add -static in the appropriate place and then have it relink the executable.
> > It's not nearly so easy any more.
> 
> ...and part of the problem is that, if the dynamic linking capability is
> present, you *CANNOT*, on some platforms, link it completely statically,
> period.  On those platforms, *only* dynamically-linked binaries - or, at
> least, binaries dynamically linked with at least one library, e.g.  the
> standard C library - get to use "dlopen()".
> 
> (Then again, on at least one of those platforms, namely SunOS 5.x, I'm
> not sure the vendor even guarantees that *completely* statically-linked
> binaries will work on releases later than the one on which they were
> built....)
> 
> It *might* be possible to arrange to statically link with non-system
> libraries, but I'm not enough of an automake/autoconf/libtool wizard to
> know what the right buttons to push are to do that.

Ok, then if you choose the --with-static-link option, have it completely
disable all the plugin support. Personally, I'd much rather have the
plugins be optional - sortof like kernel source - either link em all in,
or optionally have them be plugins. 

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@xxxxxxx
University of Missouri - Rolla         Phone: (573) 341-4841
CIS - Systems Programming                Fax: (573) 341-4216