f86f289351a74e13c5927c8de8f310cfff321dd6
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libtorrent / 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 libtorrent-0.13.3.orig/configure.ac libtorrent-0.13.3/configure.ac
6 --- libtorrent-0.13.3.orig/configure.ac 2012-10-31 07:38:59.345752076 -0300
7 +++ libtorrent-0.13.3/configure.ac      2012-10-31 07:39:06.454799361 -0300
8 @@ -19,7 +19,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  
16 diff -Nura libtorrent-0.13.3.orig/scripts/checks.m4 libtorrent-0.13.3/scripts/checks.m4
17 --- libtorrent-0.13.3.orig/scripts/checks.m4    2012-10-31 07:38:59.342752057 -0300
18 +++ libtorrent-0.13.3/scripts/checks.m4 2012-10-31 07:39:06.454799361 -0300
19 @@ -96,7 +96,7 @@
20  AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
21    AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
22  
23 -  AC_RUN_IFELSE([AC_LANG_SOURCE([
24 +  AC_LINK_IFELSE([AC_LANG_SOURCE([
25        #include <fcntl.h>
26        #include <stdlib.h>
27        #include <unistd.h>
28 diff -Nura libtorrent-0.13.3.orig/scripts/common.m4 libtorrent-0.13.3/scripts/common.m4
29 --- libtorrent-0.13.3.orig/scripts/common.m4    2012-10-31 07:38:59.342752057 -0300
30 +++ libtorrent-0.13.3/scripts/common.m4 2012-10-31 07:39:32.550972826 -0300
31 @@ -223,7 +223,7 @@
32  AC_DEFUN([TORRENT_CHECK_EXECINFO], [
33    AC_MSG_CHECKING(for execinfo.h)
34  
35 -  AC_RUN_IFELSE([AC_LANG_SOURCE([
36 +  AC_LINK_IFELSE([AC_LANG_SOURCE([
37        #include <execinfo.h>
38        int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
39        ])],