Re: [gtk-list] Re: Static binary

Erik Mouw wrote:

> On Wed, 08 Sep 1999 15:42:52 +0900, Maxim Marin wrote:
> > I need to make a static binary of my Gtk++ program. Unfortunately just
> > passing -static to compiler will not work. gmodule depends on dlopen,
> > dlclose...
> What OS are you using? Creating static linked binaries is not a trivial
> task. Also show the command you use to link a dynamically linked binary,
> maybe we just can tell add option "....".

I am developing on Solaris, with either Sun CC or g++ compiler. (The two of
them work, but I prefer Sun CC) the command is:
CC -B static *bunch-of-objects* -o myBinary-L/usr/local/lib -L/opt/X11R6.4/lib
-R/opt/X11R6.4/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket
-lnsl -lm (these are supplied by gtk-config --libs)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]