From: Chris B. <ch...@cn...> - 2010-12-31 19:36:51
|
On Thu, Dec 30, 2010 at 4:50 AM, Samuel Monsarrat <smo...@fr...> wrote: > Hi > I am trying to build a minimal static version of sox that will have the smallest size possible. I am compiling under a 34it and 64bit Linux systems and have currently got the size of the resulting > binary down to about 5.1Mb for 64bit and 3.4Mb for 34bit which is still too large for my usage. > I basically only need to support wav, mp3 decoding (libmad) ogg (libvorbis & libogg) and that is about it. Is it possible to strip most of the formats and effects using configure options or will I > have to delve deeper into the code ? would that really help in making the executable smaller ? > Using the "--enable-static --disable-shared" options on config are going to get you about the smallest size. You'll also want to take a look at the --without-* options from "configure --help" to see what you can disable if you have optional libraries installed. This still may be pretty big binary and from there you'll probably have to start hacking the Makefile as well as modify the formats.h file to strip out unwanted file handlers. Chris |