Hello!
I'm almost finished with compiling ethereal under ReliantUNIX 5.43 (main
problems were: glib, gtk, ethereal only with gcc, all the rest without gcc,
pcap without bison and without flex) but now I have problems with the
ethereal_static program:
In Makefile.am we have the non-portable constuct:
ethereal_static_LDFLAGS = -Wl,-static
This may work on Linux or on machines with GNU ld but with a normal
SysVR4 linker, I need -Wl,-Bstatic. It may be better (did not try it) to use
the -all-static parameter of libtool.
The other more severe problem is, that -Wl,-Bstatic works with static
libraries only. All following shared libraries (libnsl is always a shared
library on SysVR4) don't link: I need an additional -Wl,-Bdynamic in front of
the shared libraries. The last part of the link command-line ($LIBS) is
especially vulnerable to this (as it contains -lz, which is surely dynamic).
My goal was, that all the non-standard libraries (gtk, gdk, gmodule, glib, z,
pcap) are static and all the rest may be dynamic (socket, nsl, X11, Xext, c).
So I can hand out a single executable without any further LD_LIBRARY_PATH
wizardry.
How can we reach such a goal without breaking too much?
Uwe