summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-06-03 16:37:56 +0200
committerRyan Dahl <ry@tinyclouds.org>2011-06-03 16:37:56 +0200
commitb6a742d76fa8a598f24c8c2ec5b18d0cdc22ef4a (patch)
tree0620e67e68151c77b31f9e5cc0635869f130931a /wscript
parent8971b593659b4ba48f63a095fb0b9a1bd4662db6 (diff)
parent37d529f818aacd1146b1d927b3251bbefcea389f (diff)
downloadnodejs-b6a742d76fa8a598f24c8c2ec5b18d0cdc22ef4a.tar.gz
nodejs-b6a742d76fa8a598f24c8c2ec5b18d0cdc22ef4a.tar.bz2
nodejs-b6a742d76fa8a598f24c8c2ec5b18d0cdc22ef4a.zip
Merge branch 'v0.4'
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/wscript b/wscript
index 1cc8dd1a1..a97dd6566 100644
--- a/wscript
+++ b/wscript
@@ -143,6 +143,13 @@ def set_options(opt):
, dest='openssl_libpath'
)
+ opt.add_option( '--no-ssl2'
+ , action='store_true'
+ , default=False
+ , help="Disable OpenSSL v2"
+ , dest='openssl_nov2'
+ )
+
opt.add_option( '--gdb'
, action='store_true'
, default=False
@@ -257,6 +264,11 @@ def configure(conf):
if not Options.options.without_ssl:
# Don't override explicitly supplied openssl paths with pkg-config results.
explicit_openssl = o.openssl_includes or o.openssl_libpath
+
+ # Disable ssl v2 methods
+ if o.openssl_nov2:
+ conf.env.append_value("CPPFLAGS", "-DOPENSSL_NO_SSL2=1")
+
if not explicit_openssl and conf.check_cfg(package='openssl',
args='--cflags --libs',
uselib_store='OPENSSL'):