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