summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcgalibern <cgalibern@users.noreply.github.com>2015-03-06 16:17:06 +0100
committerJulien Gilli <julien.gilli@joyent.com>2015-07-17 11:46:03 -0700
commit8b81f98c41158856c09b57afc4cf879e9b65efe9 (patch)
tree2bd292e5a435bda72afab56c8d753b0a4b675ecc
parent78d256e7f5def6e1ffbf5fb5b232ecf78bc7bde5 (diff)
downloadnode-8b81f98c41158856c09b57afc4cf879e9b65efe9.tar.gz
configure: add --without-mdb flag
Add a configuration flag that prevents mdb_v8.so from being built. The default behavior is still the same and mdb_v8.so is built by default on Solaris based platforms such as SmartOS. Using --without-mdb fixes build issues on Solaris based platforms where libproc.h is not available or not compatible with the one shipped by SmartOS. Fixes #6439. Reviewed-By: Julien Gilli <julien.gilli@joyent.com> PR-URL: https://github.com/joyent/node/pull/25707
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 66cb312dd..5751a32a9 100755
--- a/configure
+++ b/configure
@@ -282,6 +282,11 @@ parser.add_option('--without-etw',
dest='without_etw',
help='build without ETW')
+parser.add_option('--without-mdb',
+ action='store_true',
+ dest='without_mdb',
+ help='build without mdb')
+
parser.add_option('--without-npm',
action='store_true',
dest='without_npm',
@@ -554,7 +559,7 @@ def configure_node(o):
# if we're on illumos based systems wrap the helper library into the
# executable
if flavor == 'solaris':
- o['variables']['node_use_mdb'] = 'true'
+ o['variables']['node_use_mdb'] = b(not options.without_mdb)
else:
o['variables']['node_use_mdb'] = 'false'