• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libtorrent/0001-cross_compile.patch
Vicente Olivert RieraVicente Olivert Riera committed 1376203719205 Oct 2015
Raw file
Source viewDiff to previous
 
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.
5
​
6
[Vincent: tweak the patch for version 0.13.6]
7
​
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(-)
15
​
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)
21
 
22
 AM_INIT_AUTOMAKE
23
 AC_CONFIG_HEADERS(config.h)
24
-AM_PATH_CPPUNIT(1.9.6)
25
 
26
 AC_PROG_CXX
27
 
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)
35
 
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)
48
 
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)
57
 
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
-- 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.