View Full Version : how to compile static

05-05-2007, 03:35 PM

how could I compile clanlib programms static?

I'm using Ubuntu.

05-07-2007, 05:03 AM
I believe it builds static libraries by default? (I'm talking about 0.8 here...)

If you do

./configure --help

it has a note about being able to set certain libraries as shared or static.

But I just do ./configure with no parms, and when making my app (http://www.rtsoft.com/novashell), I link in the clanlib .a's and other things that Clanlib uses like libpng12.a, libvorbis.a, etc and it seems to include everything. I end up with a 4 MB executable that *seems* to run on other systems ok.. uh, but I haven't tested it much.