Re: Static compilation of hello world



Quoted by a party of fast midgets
For `Patricia Balbastre Betoret <patricia disca upv es>' 
On Friday, 20 June 2003 (16:58):



gcc base.c `pkg-config --libs --cflags gtk+-2.0` -lpthread -static -o 
base-static

And it works!!! However, the executable of a simple window in gtk is 11 Mb, 
and 2Mb after making strip.


        Is it possible to use GTK Theme Engines with a static binary? Last time I
tried, with GTK1.2, I just got some segfaults and loads of warning messages in
stderr...

-- 

 Leandro Pereira              (oO)           <leandro linuxmag com br>
                              /||\                  www.mindcrisis.tk



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