summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/files/db_linking_hack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/apt/files/db_linking_hack.patch')
-rw-r--r--meta/recipes-devtools/apt/files/db_linking_hack.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/files/db_linking_hack.patch b/meta/recipes-devtools/apt/files/db_linking_hack.patch
new file mode 100644
index 0000000000..3c8368b1ed
--- /dev/null
+++ b/meta/recipes-devtools/apt/files/db_linking_hack.patch
@@ -0,0 +1,27 @@
1Index: apt-0.7.3/configure.in
2===================================================================
3--- apt-0.7.3.orig/configure.in 2007-07-01 10:38:45.000000000 +0000
4+++ apt-0.7.3/configure.in 2007-08-21 13:39:26.000000000 +0000
5@@ -67,8 +67,20 @@
6 [AC_DEFINE(HAVE_BDB)
7 BDBLIB="-ldb"
8 AC_MSG_RESULT(yes)],
9- [BDBLIB=""
10- AC_MSG_RESULT(no)]
11+
12+ LIBS="$LIBS -lpthread"
13+ [AC_MSG_CHECKING(if we can link against BerkeleyDB with pthread)
14+ AC_LINK_IFELSE(
15+ [AC_LANG_PROGRAM(
16+ [#include <db.h>],
17+ [int r, s, t; db_version(&r, &s, &t);]
18+ )],
19+ [AC_DEFINE(HAVE_BDB)
20+ BDBLIB="-ldb -lpthread"
21+ AC_MSG_RESULT(yes)],
22+ [BDBLIB=""
23+ AC_MSG_RESULT(no)]
24+ )]
25 )]
26 )
27