summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch50
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch67
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch25
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch64
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb/0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch50
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb/0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch127
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb_git.bb66
7 files changed, 105 insertions, 344 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
deleted file mode 100644
index 650389e16a..0000000000
--- a/meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1From f1bd00e7f54aad6479bc809c27d5cd3c2fb993eb Mon Sep 17 00:00:00 2001
2From: Michael Hudson-Doyle <michael.hudson@linaro.org>
3Date: Fri, 20 Dec 2013 11:10:43 +1300
4Subject: [PATCH 1/5] Make it possible to disable the use of v8.
5
6Currently v8 is always built in, no matter what you pass to scons.
7
8This 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
14diff --git a/SConstruct b/SConstruct
15index 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--
491.9.0
50
diff --git a/meta-oe/recipes-support/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch b/meta-oe/recipes-support/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch
new file mode 100644
index 0000000000..09d49d28cd
--- /dev/null
+++ b/meta-oe/recipes-support/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch
@@ -0,0 +1,67 @@
1From 53368d3f4adc09dd84234a9af31771bcd8ca2757 Mon Sep 17 00:00:00 2001
2From: Sven Ebenfeld <sven.ebenfeld@gmail.com>
3Date: Fri, 15 Jan 2016 22:41:28 +0100
4Subject: [PATCH] Tell scons to use build settings from environment variables
5
6Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
7---
8 SConstruct | 8 ++++++--
9 src/mongo/util/SConscript | 2 ++
10 2 files changed, 8 insertions(+), 2 deletions(-)
11
12diff --git a/SConstruct b/SConstruct
13index 5082a4b..3370f70 100644
14--- a/SConstruct
15+++ b/SConstruct
16@@ -507,6 +507,7 @@ def variable_arch_converter(val):
17 'amd64': 'x86_64',
18 'emt64': 'x86_64',
19 'x86': 'i386',
20+ 'aarch64': 'arm64',
21 }
22 val = val.lower()
23
24@@ -568,7 +569,8 @@ env_vars.Add('ARFLAGS',
25 converter=variable_shlex_converter)
26
27 env_vars.Add('CC',
28- help='Select the C compiler to use')
29+ help='Select the C compiler to use',
30+ default=os.getenv('CC'))
31
32 env_vars.Add('CCFLAGS',
33 help='Sets flags for the C and C++ compiler',
34@@ -588,7 +590,8 @@ env_vars.Add('CPPPATH',
35 converter=variable_shlex_converter)
36
37 env_vars.Add('CXX',
38- help='Select the C++ compiler to use')
39+ help='Select the C++ compiler to use',
40+ default=os.getenv('CXX'))
41
42 env_vars.Add('CXXFLAGS',
43 help='Sets flags for the C++ compiler',
44@@ -818,6 +821,7 @@ envDict = dict(BUILD_ROOT=buildDir,
45 )
46
47 env = Environment(variables=env_vars, **envDict)
48+env.PrependENVPath('PATH', os.getenv('PATH'))
49 del envDict
50
51 env.AddMethod(env_os_is_wrapper, 'TargetOSIs')
52diff --git a/src/mongo/util/SConscript b/src/mongo/util/SConscript
53index 6add602..8d05a62 100644
54--- a/src/mongo/util/SConscript
55+++ b/src/mongo/util/SConscript
56@@ -251,6 +251,8 @@ if get_option('allocator') == 'tcmalloc':
57 'MONGO_HAVE_GPERFTOOLS_GET_THREAD_CACHE_SIZE'
58 ]
59 )
60+ if not use_system_version_of_library('valgrind'):
61+ tcmspEnv.InjectThirdPartyIncludePaths('valgrind')
62
63 tcmspEnv.Library(
64 target='tcmalloc_set_parameter',
65--
661.9.1
67
diff --git a/meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch b/meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch
deleted file mode 100644
index b4388d8f0d..0000000000
--- a/meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From 5b22f64a2e2237082d2733698b07147d27b09ad2 Mon Sep 17 00:00:00 2001
2From: Michael Hudson-Doyle <michael.hudson@linaro.org>
3Date: Fri, 20 Dec 2013 12:28:27 +1300
4Subject: [PATCH 2/5] Fix linking when scripting is disabled.
5
6---
7 src/mongo/scripting/engine_none.cpp | 4 ++++
8 1 file changed, 4 insertions(+)
9
10diff --git a/src/mongo/scripting/engine_none.cpp b/src/mongo/scripting/engine_none.cpp
11index f5c7109..9ae9d57 100644
12--- a/src/mongo/scripting/engine_none.cpp
13+++ b/src/mongo/scripting/engine_none.cpp
14@@ -33,4 +33,8 @@ namespace mongo {
15 void ScriptEngine::setup() {
16 // noop
17 }
18+
19+ std::string ScriptEngine::getInterpreterVersionString() {
20+ return "none";
21+ }
22 }
23--
241.9.0
25
diff --git a/meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch b/meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch
deleted file mode 100644
index 016ac3584b..0000000000
--- a/meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch
+++ /dev/null
@@ -1,64 +0,0 @@
1From eab4316597a8e9e7bbf845a054564c6daa4a95b7 Mon Sep 17 00:00:00 2001
2From: Michael Hudson-Doyle <michael.hudson@linaro.org>
3Date: Wed, 22 Jan 2014 13:53:10 +1300
4Subject: [PATCH 3/5] * Do not build 'mongo' binary when scripting is disabled
5 * Do not build the jstests when scripting is disabled
6
7---
8 SConstruct | 8 ++++++--
9 src/mongo/SConscript | 4 +++-
10 2 files changed, 9 insertions(+), 3 deletions(-)
11
12diff --git a/SConstruct b/SConstruct
13index 6e0ef3b..c84a669 100644
14--- a/SConstruct
15+++ b/SConstruct
16@@ -440,10 +440,13 @@ else:
17
18 static = has_option( "static" )
19
20-noshell = has_option( "noshell" )
21-
22 disable_scripting = has_option( "disable-scripting" )
23
24+if not disable_scripting:
25+ noshell = has_option( "noshell" )
26+else:
27+ noshell = True
28+
29 asio = has_option( "asio" )
30
31 usePCH = has_option( "usePCH" )
32@@ -1662,6 +1665,7 @@ Export("get_option")
33 Export("has_option use_system_version_of_library")
34 Export("mongoCodeVersion")
35 Export("usev8")
36+Export("disable_scripting")
37 Export("darwin windows solaris linux freebsd nix")
38 Export('module_sconscripts')
39 Export("debugBuild optBuild")
40diff --git a/src/mongo/SConscript b/src/mongo/SConscript
41index 58f8406..b4379e7 100644
42--- a/src/mongo/SConscript
43+++ b/src/mongo/SConscript
44@@ -6,6 +6,7 @@ import os
45 import itertools
46 from buildscripts import utils
47
48+Import("disable_scripting")
49 Import("env")
50 Import("shellEnv")
51 Import("testEnv")
52@@ -1043,7 +1044,8 @@ test = testEnv.Install(
53 [ f for f in Glob("dbtests/*.cpp")
54 if not str(f).endswith('framework.cpp') and
55 not str(f).endswith('framework_options.cpp') and
56- not str(f).endswith('framework_options_init.cpp') ],
57+ not str(f).endswith('framework_options_init.cpp') and
58+ not (str(f).endswith('jstests.cpp') and disable_scripting)],
59 LIBDEPS = [
60 "mutable_bson_test_utils",
61 "mongocommon",
62--
631.9.0
64
diff --git a/meta-oe/recipes-support/mongodb/mongodb/0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch b/meta-oe/recipes-support/mongodb/mongodb/0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch
deleted file mode 100644
index ade7ec02ab..0000000000
--- a/meta-oe/recipes-support/mongodb/mongodb/0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1From d02f33d860f2d11f71e9056782a2e75603d6ec25 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen.kooi@linaro.org>
3Date: Tue, 4 Feb 2014 10:56:35 +0100
4Subject: [PATCH 4/5] replace os.uname with os.getenv(OE_TARGET_ARCH)
5
6This fixes crosscompilation
7
8Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
9Upstream-Status: Inappropiate [OE specific]
10---
11 SConstruct | 8 ++++----
12 1 file changed, 4 insertions(+), 4 deletions(-)
13
14diff --git a/SConstruct b/SConstruct
15index c84a669..05e2ea0 100644
16--- a/SConstruct
17+++ b/SConstruct
18@@ -257,9 +257,9 @@ add_option( "pch" , "use precompiled headers to speed up the build (experimental
19 add_option( "distcc" , "use distcc for distributing builds" , 0 , False )
20
21 # debugging/profiling help
22-if os.sys.platform.startswith("linux") and (os.uname()[-1] == 'x86_64'):
23+if os.sys.platform.startswith("linux") and (os.getenv("OE_TARGET_ARCH") == 'x86_64'):
24 defaultAllocator = 'tcmalloc'
25-elif (os.sys.platform == "darwin") and (os.uname()[-1] == 'x86_64'):
26+elif (os.sys.platform == "darwin") and (os.getenv("OE_TARGET_ARCH") == 'x86_64'):
27 defaultAllocator = 'tcmalloc'
28 else:
29 defaultAllocator = 'system'
30@@ -633,7 +633,7 @@ if has_option( "extralib" ):
31 # ---- other build setup -----
32
33 if "uname" in dir(os):
34- processor = os.uname()[4]
35+ processor = os.getenv("OE_TARGET_ARCH")
36 else:
37 processor = "i386"
38
39@@ -662,7 +662,7 @@ elif linux:
40
41 env.Append( LIBS=['m'] )
42
43- if os.uname()[4] == "x86_64" and not force32:
44+ if os.getenv("OE_TARGET_ARCH") == "x86_64" and not force32:
45 linux64 = True
46 nixLibPrefix = "lib64"
47 env.Append( EXTRALIBPATH=["/usr/lib64" , "/lib64" ] )
48--
491.9.0
50
diff --git a/meta-oe/recipes-support/mongodb/mongodb/0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch b/meta-oe/recipes-support/mongodb/mongodb/0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch
deleted file mode 100644
index 490d56485f..0000000000
--- a/meta-oe/recipes-support/mongodb/mongodb/0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch
+++ /dev/null
@@ -1,127 +0,0 @@
1From e31f85e6915d4bf6ed76c5da71c235525fa4ecc3 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen.kooi@linaro.org>
3Date: Mon, 14 Apr 2014 10:29:42 +0200
4Subject: [PATCH 5/5] GCC 4.7+ supports atomic ops for armv5 and up, but only
5 exports the functions for armv6 and up. This patch works around the linker
6 problems associated with that.
7
8Forward ported from http://pkgs.fedoraproject.org/cgit/mongodb.git/tree/mongodb-2.4.5-atomics.patch
9
10Upstream-status: pending
11---
12 src/mongo/bson/util/atomic_int.h | 26 ++++++++++++
13 src/mongo/platform/atomic_intrinsics_gcc_generic.h | 47 ++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16diff --git a/src/mongo/bson/util/atomic_int.h b/src/mongo/bson/util/atomic_int.h
17index 0b85363..ed02c23 100644
18--- a/src/mongo/bson/util/atomic_int.h
19+++ b/src/mongo/bson/util/atomic_int.h
20@@ -24,6 +24,10 @@
21
22 #include "mongo/platform/compiler.h"
23
24+#define GCC_VERSION (__GNUC__ * 10000 \
25+ + __GNUC_MINOR__ * 100 \
26+ + __GNUC_PATCHLEVEL__)
27+
28 namespace mongo {
29
30 /**
31@@ -72,6 +76,28 @@ namespace mongo {
32 InterlockedAdd((volatile long *)&x,by);
33 }
34 # endif
35+#elif defined(GCC_VERSION) && GCC_VERSION >= 40700
36+// in GCC version >= 4.7.0 we can use the built-in atomic operations
37+
38+ inline void AtomicUInt::set(unsigned newX) {
39+ __atomic_store_n (&x, newX, __ATOMIC_SEQ_CST);
40+ }
41+ AtomicUInt AtomicUInt::operator++() { // ++prefix
42+ return __atomic_add_fetch(&x, 1, __ATOMIC_SEQ_CST);
43+ }
44+ AtomicUInt AtomicUInt::operator++(int) { // postfix++
45+ return __atomic_fetch_add(&x, 1, __ATOMIC_SEQ_CST);
46+ }
47+ AtomicUInt AtomicUInt::operator--() { // --prefix
48+ return __atomic_add_fetch(&x, -1, __ATOMIC_SEQ_CST);
49+ }
50+ AtomicUInt AtomicUInt::operator--(int) { // postfix--
51+ return __atomic_fetch_add(&x, -1, __ATOMIC_SEQ_CST);
52+ }
53+ void AtomicUInt::signedAdd(int by) {
54+ __atomic_fetch_add(&x, by, __ATOMIC_SEQ_CST);
55+ }
56+
57 #elif defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
58 // this is in GCC >= 4.1
59 inline void AtomicUInt::set(unsigned newX) { __sync_synchronize(); x = newX; }
60diff --git a/src/mongo/platform/atomic_intrinsics_gcc_generic.h b/src/mongo/platform/atomic_intrinsics_gcc_generic.h
61index 64a2499..b7cc176 100644
62--- a/src/mongo/platform/atomic_intrinsics_gcc_generic.h
63+++ b/src/mongo/platform/atomic_intrinsics_gcc_generic.h
64@@ -22,8 +22,53 @@
65
66 #include <boost/utility.hpp>
67
68+#define GCC_VERSION (__GNUC__ * 10000 \
69+ + __GNUC_MINOR__ * 100 \
70+ + __GNUC_PATCHLEVEL__)
71+
72 namespace mongo {
73
74+// If GCC version >= 4.7.0, we can use the built-in atomic operations
75+#if defined(GCC_VERSION) && GCC_VERSION >= 40700
76+
77+ /**
78+ * Instantiation of AtomicIntrinsics<>.
79+ */
80+ template <typename T>
81+ class AtomicIntrinsics {
82+ public:
83+
84+ static T compareAndSwap(volatile T* dest, T expected, T newValue) {
85+ return __atomic_compare_exchange_n (dest, &expected, newValue, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
86+ }
87+
88+ static T swap(volatile T* dest, T newValue) {
89+ return __atomic_exchange_n (dest, newValue, __ATOMIC_SEQ_CST);
90+ }
91+
92+ static T load(volatile const T* value) {
93+ return __atomic_load_n (value, __ATOMIC_SEQ_CST);
94+ }
95+
96+ static T loadRelaxed(volatile const T* value) {
97+ return *value;
98+ }
99+
100+ static void store(volatile T* dest, T newValue) {
101+ __atomic_store_n (dest, newValue, __ATOMIC_SEQ_CST);
102+ }
103+
104+ static T fetchAndAdd(volatile T* dest, T increment) {
105+ return __atomic_fetch_add (dest, increment, __ATOMIC_SEQ_CST);
106+ }
107+
108+ private:
109+ AtomicIntrinsics();
110+ ~AtomicIntrinsics();
111+ };
112+
113+#else // GCC version < 4.7, so we must use legacy (platform-specific) atomic operations
114+
115 /**
116 * Instantiation of AtomicIntrinsics<> for all word types T.
117 */
118@@ -67,4 +112,6 @@ namespace mongo {
119 ~AtomicIntrinsics();
120 };
121
122+#endif // GCC_VERSION >= 40700
123+
124 } // namespace mongo
125--
1261.9.0
127
diff --git a/meta-oe/recipes-support/mongodb/mongodb_git.bb b/meta-oe/recipes-support/mongodb/mongodb_git.bb
index 879fc7c9ed..a91240a713 100644
--- a/meta-oe/recipes-support/mongodb/mongodb_git.bb
+++ b/meta-oe/recipes-support/mongodb/mongodb_git.bb
@@ -3,44 +3,54 @@ LICENSE = "AGPL-3.0 & Apache-2.0"
3LIC_FILES_CHKSUM = "file://GNU-AGPL-3.0.txt;md5=73f1eb20517c55bf9493b7dd6e480788 \ 3LIC_FILES_CHKSUM = "file://GNU-AGPL-3.0.txt;md5=73f1eb20517c55bf9493b7dd6e480788 \
4 file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" 4 file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
5 5
6DEPENDS = "openssl libpcre boost libpcap" 6DEPENDS = "openssl libpcre libpcap zlib"
7# Mongo uses tcmalloc on x86_64, which is provided by gperftools
8DEPENDS_append_x86-64 = " gperftools"
9 7
10inherit scons 8inherit scons
11 9
12# Target 'build/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo/mongod' depends on the availability of a system provided library for 'boost_program_options', but no suitable library was found during configuration. 10PV = "3.3.0+git${SRCPV}"
13# | Target 'build/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo/mongod' depends on the availability of a system provided library for 'boost_program_options', but no suitable library was found during configuration. 11SRCREV = "aacd231be0626a204cb40908afdf62c4b67bb0ad"
14# | scons: *** [build/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo/mongod] Error 1 12SRC_URI = "git://github.com/mongodb/mongo.git;branch=master \
15# | scons: building terminated because of errors. 13 file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \
16# | ERROR: scons build execution failed. 14 "
17PNBLACKLIST[mongodb] ?= "Fails to build with system boost"
18
19PV = "2.6.0+git${SRCPV}"
20SRCREV = "be1905c24c7e5ea258e537fbf0d2c502c4fc6de2"
21SRC_URI = "git://github.com/mongodb/mongo.git;branch=v2.6 \
22 file://0001-Make-it-possible-to-disable-the-use-of-v8.patch \
23 file://0002-Fix-linking-when-scripting-is-disabled.patch \
24 file://0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch \
25 file://0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch \
26 file://0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch \
27 "
28 15
29S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
30 17
31export OE_TARGET_ARCH="${TARGET_ARCH}" 18# Wiredtiger supports only 64-bit platforms
19PACKAGECONFIG_x86-64 ??= "tcmalloc wiredtiger"
20PACKAGECONFIG_aarch64 ??= "tcmalloc wiredtiger"
21PACKAGECONFIG ??= "tcmalloc"
22# gperftools compilation fails for arm below v7 because of missing support of
23# dmb operation. So we use system-allocator instead of tcmalloc
24PACKAGECONFIG_remove_armv6 = "tcmalloc"
25
26#std::current_exception is undefined for arm < v6
27COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"
28COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*"
29COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*"
30
31PACKAGECONFIG[tcmalloc] = "--use-system-tcmalloc,--allocator=system,gperftools,"
32PACKAGECONFIG[wiredtiger] = "--wiredtiger=on,--wiredtiger=off,,"
32 33
33EXTRA_OESCONS = "--prefix=${D}${prefix} \ 34EXTRA_OESCONS = "--prefix=${D}${prefix} \
34 --propagate-shell-environment \ 35 LIBPATH=${STAGING_LIBDIR} \
35 --cc-use-shell-environment \ 36 LINKFLAGS='${LDFLAGS}' \
36 --cxx-use-shell-environment \ 37 CXXFLAGS='${CXXFLAGS}' \
37 --ld='${TARGET_PREFIX}g++' \ 38 TARGET_ARCH=${TARGET_ARCH} \
38 --ssl \ 39 --ssl \
39 --use-system-pcre \ 40 --disable-warnings-as-errors \
40 --use-system-boost \ 41 --use-system-pcre \
41 --use-system-tcmalloc \ 42 --use-system-zlib \
42 --disable-scripting \ 43 --js-engine=none \
43 --nostrip \ 44 --nostrip \
45 ${EXTRA_OECONF} \
44 mongod mongos" 46 mongod mongos"
45 47
48scons_do_compile() {
49 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} || \
50 die "scons build execution failed."
51}
46 52
53scons_do_install() {
54 ${STAGING_BINDIR_NATIVE}/scons install ${EXTRA_OESCONS}|| \
55 die "scons install execution failed."
56}