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 08:34:59 -0500
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