linux-headers: bump 4.{4, 9}.x series
[buildroot-gz.git] / package / libtorrent / 0001-cross_compile.patch
blobabb243820c3a67b5394c9fa8466d7a64474c0cd4
1 From c4cc0ba76c81e1967c648be423f5f0312ac9d87f Mon Sep 17 00:00:00 2001
2 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3 Date: Mon, 5 Oct 2015 00:40:25 +0100
4 Subject: [PATCH] Fix cross compilation, based on OpenWRT patch.
6 [Vincent: tweak the patch for version 0.13.6]
8 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
10 ---
11 configure.ac | 1 -
12 scripts/checks.m4 | 2 +-
13 scripts/common.m4 | 4 ++--
14 3 files changed, 3 insertions(+), 4 deletions(-)
16 diff --git a/configure.ac b/configure.ac
17 index ba994ee..7696466 100644
18 --- a/configure.ac
19 +++ b/configure.ac
20 @@ -19,7 +19,6 @@ AC_SUBST(LIBTORRENT_INTERFACE_VERSION_NO)
22 AM_INIT_AUTOMAKE
23 AC_CONFIG_HEADERS(config.h)
24 -AM_PATH_CPPUNIT(1.9.6)
26 AC_PROG_CXX
28 diff --git a/scripts/checks.m4 b/scripts/checks.m4
29 index 598f39b..0e5abe0 100644
30 --- a/scripts/checks.m4
31 +++ b/scripts/checks.m4
32 @@ -96,7 +96,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
33 AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
34 AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
36 - AC_RUN_IFELSE([AC_LANG_SOURCE([
37 + AC_LINK_IFELSE([AC_LANG_SOURCE([
38 #include <fcntl.h>
39 #include <stdlib.h>
40 #include <unistd.h>
41 diff --git a/scripts/common.m4 b/scripts/common.m4
42 index 5127624..cc68269 100644
43 --- a/scripts/common.m4
44 +++ b/scripts/common.m4
45 @@ -223,7 +223,7 @@ dnl Need to fix this so that it uses the stuff defined by the system.
46 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
47 AC_MSG_CHECKING(for execinfo.h)
49 - AC_RUN_IFELSE([AC_LANG_SOURCE([
50 + AC_LINK_IFELSE([AC_LANG_SOURCE([
51 #include <execinfo.h>
52 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
53 ])],
54 @@ -238,7 +238,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
55 AC_DEFUN([TORRENT_CHECK_ALIGNED], [
56 AC_MSG_CHECKING(the byte alignment)
58 - AC_RUN_IFELSE([AC_LANG_SOURCE([
59 + AC_LINK_IFELSE([AC_LANG_SOURCE([
60 #include <inttypes.h>
61 int main() {
62 char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };
63 --
64 1.7.1