Static linking gtk in a program...



This is not strictly a Gtk question, but here it goes in the hope of a
response:

What parameters do I have to pass gcc to static link gtk (and gdk, and
glib) libraries into a program?
But I don't want to statically link X related libs, only the gtk...
libs.
When I use gcc myprogram.c -o myprogram `gtk-config --libs --cflags`
-static,
I think X libs are being included inside the binary...
Any clues...? Thanks in advance.





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