diff --git a/binding.gyp b/binding.gyp index 050bc406645..4c6a641b8c6 100644 --- a/binding.gyp +++ b/binding.gyp @@ -73,6 +73,16 @@ ] ] }], + ['OS=="mac"', { + 'xcode_settings': { + 'MACOSX_DEPLOYMENT_TARGET': '10.9', + 'OTHER_CFLAGS': [ + '-fno-strict-aliasing', + '-std=c++11', + '-stdlib=libc++' + ] + } + }] ] }, 'targets': [ diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template index e86449fd3f9..982a9aeacee 100644 --- a/templates/binding.gyp.template +++ b/templates/binding.gyp.template @@ -75,6 +75,16 @@ ] ] }], + ['OS=="mac"', { + 'xcode_settings': { + 'MACOSX_DEPLOYMENT_TARGET': '10.9', + 'OTHER_CFLAGS': [ + '-fno-strict-aliasing', + '-std=c++11', + '-stdlib=libc++' + ] + } + }] ] }, 'targets': [