The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rtorrent / 0001-cross_compile.patch
1 Fix cross compilation, based on OpenWRT patch.
2
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
4
5 diff -Nura rtorrent-0.9.2/configure.ac rtorrent-0.9.2-cross/configure.ac
6 --- rtorrent-0.9.2/configure.ac 2012-04-20 03:55:30.000000000 -0300
7 +++ rtorrent-0.9.2-cross/configure.ac   2012-05-09 11:06:49.436474039 -0300
8 @@ -4,7 +4,6 @@
9  
10  AM_INIT_AUTOMAKE
11  AM_CONFIG_HEADER(config.h)
12 -AM_PATH_CPPUNIT(1.9.6)
13  
14  AC_PROG_CXX
15  AC_PROG_LIBTOOL
16 diff -Nura rtorrent-0.9.2/scripts/common.m4 rtorrent-0.9.2-cross/scripts/common.m4
17 --- rtorrent-0.9.2/scripts/common.m4    2012-03-13 09:10:49.000000000 -0300
18 +++ rtorrent-0.9.2-cross/scripts/common.m4      2012-05-09 11:05:56.620102678 -0300
19 @@ -223,7 +223,7 @@
20  AC_DEFUN([TORRENT_CHECK_EXECINFO], [
21    AC_MSG_CHECKING(for execinfo.h)
22  
23 -  AC_RUN_IFELSE([AC_LANG_SOURCE([
24 +  AC_LINK_IFELSE([AC_LANG_SOURCE([
25        #include <execinfo.h>
26        int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
27        ])],