I have uploaded a file called: libtorrent-0.12.6.mips.clean.tar to incoming.
All of my changes should have "#ifdef IRIX64"
Please
Could someone:
1. Peer review my code changes and see if they agree with what I have done. (get a fresh version and run a "diff -Naur" bwtween directories) or simply edit the files changed. Don't trust my changes blindly.
2. Set the install path as /usr/nekoware and do make install
3. Create a package.
Files changed:
find . -exec grep -l IRIX64 {} ";"
./config.status
./config.log
./src/tracker/Makefile
./src/download/download_info.h
./src/download/download_constructor.cc
./src/download/Makefile
./src/utils/Makefile
./src/net/Makefile
./src/torrent/tracker_list.cc
./src/torrent/peer/connection_list.cc
./src/torrent/peer/Makefile
./src/torrent/chunk_manager.cc
./src/torrent/common.h
./src/torrent/data/file_utils.cc
./src/torrent/data/Makefile
./src/torrent/Makefile
./src/dht/dht_server.h
./src/dht/Makefile
./src/resource_manager.cc
./src/data/chunk_part.cc
./src/data/memory_chunk.cc
./src/data/Makefile
./src/protocol/handshake.cc
./src/protocol/Makefile
./src/Makefile
./rak/functional.h
./rak/ranges.h
./rak/string_manip.h
./libtool
./Makefile
My build environment:
Code:
# source me.
LD_LIBRARY_PATH=/usr/nekoware/lib/
export LD_LIBRARY_PATH
export CC=c99
export CXX=CC
export CFLAGS="-O3 -mips4 -n32 -INLINE -woff 1174 -DIRIX64"
export CXXFLAGS="-O3 -mips4 -n32 -Zf,_245 -INLINE -woff 1110,1171,1201,1355,3201 -DIRIX64"
export LDFLAGS="-L/usr/nekoware/lib"
export LIBS="-lfastm -lm -lpthread"
export PERL="/usr/nekoware/bin/perl"
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export CPPFLAGS="-I/usr/nekoware/include -I/usr/nekoware/include/glib-1.2 -I/usr/nekoware/lib/glib/include"
export PATH=/usr/nekoware/bin:$PATH
After we have an acceptable libtorrent in nekoware.. I (or someone else can) work on rtorrent.