Permalink
Browse files

Add default for `node_shared_openssl`.

It's not defined in 0.6 and earlier, and the behavior in those versions
is to always build with shared OpenSSL.
  • Loading branch information...
Dan Bornstein
Dan Bornstein committed Aug 25, 2012
1 parent a5e0e19 commit 8d4c96cb8b260268e91caf5797c0c1250fabb30e
Showing with 6 additions and 1 deletion.
  1. +6 −1 binding.gyp
View
@@ -1,10 +1,15 @@
{
+ 'variables': {
+ # Default for this variable, to get the right behavior for
+ # Node versions <= 0.6.*.
+ 'node_shared_openssl%': 'true'
+ },
'targets': [
{
'target_name': 'ursaNative',
'sources': [ 'src/ursaNative.cc' ],
'conditions': [
- ['node_shared_openssl=="false"', {
+ [ 'node_shared_openssl=="false"', {
'include_dirs': [
'<(node_root_dir)/deps/openssl/openssl/include'
]

0 comments on commit 8d4c96c

Please sign in to comment.