aMule Forum

English => Compilation problems => Topic started by: setabi on October 20, 2005, 11:30:15 PM

Title: Binary size problem?
Post by: setabi on October 20, 2005, 11:30:15 PM
Hi,
I have some problem with memory usage when I run amulegui with the cvs version.
I have noted that the binary files are very big in size:

-rwxr-xr-x  1 root root 30088345 Oct 20 23:15 /usr/bin/amule
-rwxr-xr-x  1 root root  1472326 Oct 20 23:15 /usr/bin/amulecmd
-rwxr-xr-x  1 root root  1698165 Oct 20 23:15 /usr/bin/amulecmdDLG
-rwxr-xr-x  1 root root 22689910 Oct 20 23:15 /usr/bin/amuled
-rwxr-xr-x  1 root root 15675416 Oct 20 23:15 /usr/bin/amulegui
-rwxr-xr-x  1 root root  5408912 Oct 20 23:15 /usr/bin/amuleweb
-rwxr-xr-x  1 root root  5705012 Oct 20 23:15 /usr/bin/amulewebDLG

How can I obtain binary in smaller size? Thanks in advance
Title: Re: Binary size problem?
Post by: thedude0001 on October 20, 2005, 11:48:12 PM
Chances are that you compiled with debug which makes binaries HUGE. Add
Code: [Select]
--disable-debug --enable-optimizeto your configure line.
Title: Re: Binary size problem?
Post by: setabi on October 21, 2005, 10:06:36 AM
Ok, the problem is with amule-cvs-2.ebuild that compile always with debug. USE="-debug" doesn't work...
Title: Re: Binary size problem?
Post by: thedude0001 on October 21, 2005, 02:03:22 PM
Either compile amule yourself or edit the ebuild. It shouldn't be that hard, but if you give me a hint to the ebuild I can edit it for you ;)