Hello,
i ve compiled aMule on the stable debian version Woody and all seems to work fine. Here are the options i ve use:
- because woody packages are quite old, i ve build from scratch:
* curl-7.10.8.tar.bz2 (
http://curl.haxx.se/download/curl-7.10.8.tar.bz2)
* wxBase-2.4.2.tar.bz2
* wxGTK-2.4.2.tar.bz2
in order to compile aMule-1.2.1.tar.bz2
- for wxBase, i ve used:
CXXFLAGS=-march=pentium -malign-double -fomit-frame-pointer -pipe ../configure --prefix=/opt/wx --enable-shared --disable-gui --enable-soname --with-zlib=sys --enable-std_iostreams
- for wxGtk i ve used:
CXXFLAGS=-march=pentium -malign-double -fomit-frame-pointer -pipe ../configure --prefix=/opt/wx --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile --enable-soname --enable-dynamic-loader --enable-std_iostreams
- for curl, i ve used:
CXXFLAGS=-O2 -march=pentium -malign-double -fomit-frame-pointer -pipe CFLAGS=-O2 -march=pentium -malign-double -fomit-frame-pointer -pipe ./configure --prefix=/opt/curl --disable-ipv6
and for aMule:
CXXFLAGS=-I/opt/curl/include -O2 -march=pentium -malign-double -fomit-frame-pointer -pipe CFLAGS=-I/opt/curl/include -O2 -march=pentium -malign-double -fomit-frame-pointer -pipe ./configure --prefix=/opt/amule --with-wx-prefix=/opt/wx --with-wxbase-prefix=/opt/wx --with-wxbase-config=/opt/wx/bin/wxbase-2.4-config --with-wx-config=/opt/wx/bin/wx-config --with-curl-config=/opt/curl/bin/curl-config --enable-optimise --disable-gtk --disable-systray
Notes:
* because of the Epia embeds a C3, i ve just used -march=pentium cause of cmov bug on gcc.
* -funroll-loops cause erros in compilation of wxwindows, so i havent use it
* wx add-O2, so i didnt put it in CXXFLAGS
* i dont know if aMule use CFLAGS, but it doesnt eat bread (as we say in french)
* --disable-gtk do nothing but it doesnt eat bread too
* --disable-systray because icewm dont support it, but it compiles well too if enabled
Wish: add --with-curl-prefix to be able to compile aMule without putting -I/opt/curl/include manually (--with-curl-prefix is not enough)
Conclusion: it runs for 12 hours now and it is a fantastic prog, as on windows, all mods i ve tried were crashing once a day (min)
And Epia have a very little µP (top output):
3625 fox 19 0 16672 16M 8724 S 1.1 7.4 1:32 amule
Hurra for devs !!!
the polish