On Thu, Dec 8, 2011 at 8:56 AM, Jari Sundell <[email protected]> wrote:
> On Wed, Dec 7, 2011 at 7:58 PM, Artifex Maximus <[email protected]> wrote:
>> Hello!
>>
>> I wrote a little script for helping on compile git version under
>> FreeBSD. Need some changes to run on Linux I think. libtorrent is
>> linked statically so you have to move or symlink only one executable
>> (rtorrent-git) to the place you want from folder
>> rtorrent-bin/<timestamp>-git/bin. Useful for using stable and git
>> branch together. The script written mainly to myself so the code might
>> fail and looks ugly which I do not care but you might do. You have
>> been warned. :-)
>
> I was kinda thinking of making something like that script not long ago.
>
> Attached an updated version; uses autogen.sh with proper ACLOCAL_FLAGS
> in order to compile on osx, adds support for R/LIBTORRENT_BRANCH to
> indicate what branch to use, CXX_STD to set the C++ standard to
> compile with and CHECK to enable 'make check'.
>
> LIBTORRENT_BRANCH='c++11' RTORRENT_BRANCH='c++11' CXX='g++-mp-4.6'
> CXX_STD='gnu++0x' CHECK=yes ./build-rtorrent

Thanks for the update and I am happy that my script is useful. I made
some changes and now I am able to compile rtorrent-git on FreeBSD
32bit and Debian Wheezy 64bit.

I am not sure how CFLAGS works on 64bit FreeBSD as I have no access to
such system. My Debian 64bit system complains on -march=i686 and
probably 64bit FreeBSD does the same. Debian LDFLAGS must include
-lssl and FreeBSD nicely handle -lssl so I added that to LDFLAGS.
FreeBSD specific flags separated from default flags.

Bye,
a

Attachment: build-rtorrent
Description: Binary data

_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to