diff --git a/binding.gyp b/binding.gyp index 050bc406645e2b79263aa8e13c564b2516bb7aaf..4c6a641b8c6e70cb0adf1117c49ee82f51e2a51e 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 e86449fd3f9228ff44c1d7f0a6a58d62887ee974..982a9aeacee59c8f1ed9890f62d7577a51790368 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': [