1 |
blueness 14/07/29 21:01:53 |
2 |
|
3 |
Added: 0.9.0-sys_leveldb.patch |
4 |
Log: |
5 |
Add missing patch |
6 |
|
7 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-p2p/bitcoin-qt/files/0.9.0-sys_leveldb.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/files/0.9.0-sys_leveldb.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/bitcoin-qt/files/0.9.0-sys_leveldb.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 0.9.0-sys_leveldb.patch |
16 |
=================================================================== |
17 |
commit c38e0af3e021eb0b2aba846c77b06ca71de06b11 (personal-github/sys_leveldb, sys_leveldb) |
18 |
Author: Luke Dashjr <luke-jr+git@×××××××.org> |
19 |
Date: Mon Sep 9 03:06:17 2013 +0000 |
20 |
|
21 |
configure: Add unsupported --with-system-leveldb configure flag |
22 |
|
23 |
diff --git a/configure.ac b/configure.ac |
24 |
index 3ed4549..5a5852d 100644 |
25 |
--- a/configure.ac |
26 |
+++ b/configure.ac |
27 |
@@ -332,10 +332,22 @@ AC_TRY_COMPILE([#include <sys/socket.h>], |
28 |
[ AC_MSG_RESULT(no)] |
29 |
) |
30 |
|
31 |
+dnl Check for leveldb, only if explicitly requested |
32 |
LEVELDB_CPPFLAGS= |
33 |
LIBLEVELDB= |
34 |
LIBMEMENV= |
35 |
-AM_CONDITIONAL([EMBEDDED_LEVELDB],[true]) |
36 |
+AC_ARG_WITH([system-leveldb], |
37 |
+ [AS_HELP_STRING([--with-system-leveldb], |
38 |
+ [Build with system LevelDB (default is no; DANGEROUS; NOT SUPPORTED)])], |
39 |
+ [system_leveldb=$withval], |
40 |
+ [system_leveldb=no] |
41 |
+) |
42 |
+if test x$system_leveldb != xno; then |
43 |
+ LEVELDB_CPPFLAGS= |
44 |
+ LIBLEVELDB=-lleveldb |
45 |
+ LIBMEMENV=-lmemenv |
46 |
+fi |
47 |
+AM_CONDITIONAL([EMBEDDED_LEVELDB],[test x$system_leveldb = xno]) |
48 |
AC_SUBST(LEVELDB_CPPFLAGS) |
49 |
AC_SUBST(LIBLEVELDB) |
50 |
AC_SUBST(LIBMEMENV) |