Make the .a file smaller?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Obsidian
Posts: 17
Joined: Fri Feb 17, 2006 10:42 pm

Make the .a file smaller?

Post by Obsidian »

Alright, i'm writing stuff for Linux, but the compiled output of the Irrlicht Source is 30MB+... so i was going to go ahead and remove all of the other ways (other than OpenGL from rendering types, but i wasn't sure how difficult it was to do)... are there any other ways of adjusting the source to make it compile in a smaller size?

How do you remove the other Rendering types, can i just comment out the include stuff for DX and stuff? Or do i need to go through and remove everything that ties into DX?
Legality is a horrible barometer for morality.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You just have to remove the debug information, compile with optimizations, and strip the resulting executable. Use 'make NDEBUG=1' to create an optimized libIrrlicht.a (and 'make clean' before).
Post Reply