diff options
Diffstat (limited to 'meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch')
-rw-r--r-- | meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch b/meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch new file mode 100644 index 000000000..650389e16 --- /dev/null +++ b/meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From f1bd00e7f54aad6479bc809c27d5cd3c2fb993eb Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Hudson-Doyle <michael.hudson@linaro.org> | ||
3 | Date: Fri, 20 Dec 2013 11:10:43 +1300 | ||
4 | Subject: [PATCH 1/5] Make it possible to disable the use of v8. | ||
5 | |||
6 | Currently v8 is always built in, no matter what you pass to scons. | ||
7 | |||
8 | This removes the (useless) --usev8 flag for scons and replaces it with a | ||
9 | --disable-scripting option instead. | ||
10 | --- | ||
11 | SConstruct | 9 ++++++--- | ||
12 | 1 file changed, 6 insertions(+), 3 deletions(-) | ||
13 | |||
14 | diff --git a/SConstruct b/SConstruct | ||
15 | index 3886d1b..6e0ef3b 100644 | ||
16 | --- a/SConstruct | ||
17 | +++ b/SConstruct | ||
18 | @@ -225,7 +225,7 @@ add_option( "asio" , "Use Asynchronous IO (NOT READY YET)" , 0 , True ) | ||
19 | add_option( "ssl" , "Enable SSL" , 0 , True ) | ||
20 | |||
21 | # library choices | ||
22 | -add_option( "usev8" , "use v8 for javascript" , 0 , True ) | ||
23 | +add_option( "disable-scripting" , "do not build support for javascript" , 0 , True ) | ||
24 | add_option( "libc++", "use libc++ (experimental, requires clang)", 0, True ) | ||
25 | |||
26 | # mongo feature options | ||
27 | @@ -442,7 +442,7 @@ static = has_option( "static" ) | ||
28 | |||
29 | noshell = has_option( "noshell" ) | ||
30 | |||
31 | -usev8 = has_option( "usev8" ) | ||
32 | +disable_scripting = has_option( "disable-scripting" ) | ||
33 | |||
34 | asio = has_option( "asio" ) | ||
35 | |||
36 | @@ -600,7 +600,10 @@ if has_option( "durableDefaultOn" ): | ||
37 | if has_option( "durableDefaultOff" ): | ||
38 | env.Append( CPPDEFINES=[ "_DURABLEDEFAULTOFF" ] ) | ||
39 | |||
40 | -usev8 = True | ||
41 | +if disable_scripting or justClientLib: | ||
42 | + usev8 = False | ||
43 | +else: | ||
44 | + usev8 = True | ||
45 | |||
46 | extraLibPlaces = [] | ||
47 | |||
48 | -- | ||
49 | 1.9.0 | ||
50 | |||