summaryrefslogtreecommitdiffstats
path: root/database/mongodb/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'database/mongodb/BUILD')
-rwxr-xr-xdatabase/mongodb/BUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/database/mongodb/BUILD b/database/mongodb/BUILD
index 2b10b639f0..73c97d77a4 100755
--- a/database/mongodb/BUILD
+++ b/database/mongodb/BUILD
@@ -1,6 +1,18 @@
create_account mongodb &&
-# use bundled spidermonkey, 2.2 will switch to V8
-OPTS="--sharedclient --usesm $OPTS" &&
+if ! list_find "$LDFLAGS" "-s"; then
+ OPTS="--nostrip $OPTS"
+fi &&
-scons --jobs=$MAKE_NJOBS --prefix="$INSTALL_ROOT/usr" $OPTS
+case $MONGODB_JSE in
+ v8)
+ OPTS="--usev8 $OPTS"
+ ;;
+ spidermonkey)
+ OPTS="--usesm $OPTS"
+ ;;
+esac &&
+
+OPTS="--mongod-concurrency-level=$MONGODB_CCL $MONGODB_OPTS $OPTS" &&
+
+scons all --jobs=$MAKE_NJOBS --prefix="$INSTALL_ROOT/usr" $OPTS