From 403caaf4fb8273121c3f6896815ca3e6b9ae6aef Mon Sep 17 00:00:00 2001
From: murgatroid99 <mlumish@google.com>
Date: Thu, 22 Oct 2015 15:32:04 -0700
Subject: [PATCH] Copy Node Mac build fix from old pull request (#1199)

---
 binding.gyp                    | 10 ++++++++++
 templates/binding.gyp.template | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/binding.gyp b/binding.gyp
index 050bc40664..4c6a641b8c 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 e86449fd3f..982a9aeace 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': [
-- 
GitLab