Try to fix node interop issues

pull/7900/head
Yuchen Zeng 9 years ago
parent a0941f4b8d
commit aa6240ac93
  1. 9
      binding.gyp
  2. 9
      templates/binding.gyp.template

@ -771,9 +771,10 @@
},
{
'cflags': [
'-std=c99',
'-Wall',
'-Werror',
'-Wno-implicit-function-declaration'
'-Wno-invalid-source-encoding',
],
'include_dirs': [ 'src/c-ares' ],
'target_name': 'ares',
@ -833,6 +834,12 @@
'third_party/c-ares/windows_port.c',
],
"conditions": [
['OS != "win"', {
'defines': [
'HAVE_CONFIG_H',
'_GNU_SOURCE'
]
}],
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9'

@ -209,9 +209,10 @@
% if lib.name == 'ares':
{
'cflags': [
'-std=c99',
'-Wall',
'-Werror',
'-Wno-implicit-function-declaration'
'-Wno-invalid-source-encoding',
],
'include_dirs': [ 'src/c-ares' ],
'target_name': '${lib.name}',
@ -225,6 +226,12 @@
% endfor
],
"conditions": [
['OS != "win"', {
'defines': [
'HAVE_CONFIG_H',
'_GNU_SOURCE'
]
}],
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9'

Loading…
Cancel
Save