summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/files/db_linking_hack.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/apt/files/db_linking_hack.patch
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/apt/files/db_linking_hack.patch')
-rw-r--r--meta/recipes-devtools/apt/files/db_linking_hack.patch29
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 @@
1Upstream-Status: Backport
2
3Index: 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