aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/binding.gyp
diff options
context:
space:
mode:
authorGravatar Alexander Staubo <alex@bengler.no>2015-04-05 01:33:58 -0400
committerGravatar Alexander Staubo <alex@bengler.no>2015-04-06 12:00:39 -0400
commit425e46c56c8ec872831b90e13806d75e35903a9e (patch)
tree78aa50be569308d069448ba876b18107aed42e70 /src/node/binding.gyp
parent6c963cd784e555a5294cfb9609785224cacd0a68 (diff)
Fix compilation of Node package conditionally on Mac:
* Set compilation target 10.9. * Add C++11 compilation. * Remove librt dependency.
Diffstat (limited to 'src/node/binding.gyp')
-rw-r--r--src/node/binding.gyp21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/node/binding.gyp b/src/node/binding.gyp
index 7ef3bdf4bd..83f72fabca 100644
--- a/src/node/binding.gyp
+++ b/src/node/binding.gyp
@@ -18,12 +18,29 @@
],
'link_settings': {
'libraries': [
- '-lrt',
'-lpthread',
'-lgrpc',
'-lgpr'
- ],
+ ]
},
+ "conditions": [
+ ['OS == "mac"', {
+ 'xcode_settings': {
+ 'MACOSX_DEPLOYMENT_TARGET': '10.9',
+ 'OTHER_CFLAGS': [
+ '-std=c++11',
+ '-stdlib=libc++'
+ ]
+ }
+ }],
+ ['OS != "mac"', {
+ 'link_settings': {
+ 'libraries': [
+ '-lrt'
+ ]
+ }
+ }]
+ ],
"target_name": "grpc",
"sources": [
"ext/byte_buffer.cc",