Ethereal-dev: Re: [ethereal-dev] Compiling static version ethereal HP-UX 10.20

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

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Fri, 14 Jul 2000 11:49:02 -0500
On Fri, Jul 14, 2000 at 08:37:38AM -0500, Gilbert Ramirez wrote:
> 
> 
> On Fri, Jul 14, 2000 at 08:29:05AM -0500, Volker Jahns wrote:
> >
> >
> > Followinng problem arises when compiling the static version of ethereal.
> > Operating System is HP-UX 10.20:
> >
> > make ethereal_static
> >
> > /usr/ccs/bin/ld: (Warning) Unsupported keyword -static to -static option 
> -
> > both ignored
> >
> > i.e linking doesn't work correctly.
> > chatr shows the binary NOT linked statically, but rather dynamically.
> 
> Try passing the  "+s" option to the linker instead of "-static".
> You should be able to do:
> 
> gcc -Wl,+s -o ethereal file1.o file2.o ...
> 
> Let me know if that works and I'll work on a Makefile fix.
> 
> --gilbert

Never mind that.... I read your e-mail, but totally parsed it wrong.
"+s" is for shared libraries, not for static linking.

--gilbert