Fix compilation of Node package conditionally on Mac:

* Set compilation target 10.9.
* Add C++11 compilation.
* Remove librt dependency.
pull/1199/head
Alexander Staubo 10 years ago
parent 6c963cd784
commit 425e46c56c
  1. 21
      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",

Loading…
Cancel
Save