gyp: Don't pass C++ flags to C compiler, and don't pass -ansi in OpenSSL builds.
authorEvan Martin <martine@danga.com>
Tue, 23 Aug 2011 18:04:08 +0000 (11:04 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 23 Aug 2011 20:19:17 +0000 (13:19 -0700)
common.gypi
deps/openssl/openssl.gyp

index 8cbb78f..5ff4e14 100644 (file)
         ],
       }],
       [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
-        'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions' ],
+        'cflags': [ '-Wall', '-pthread', ],
+        'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
         'ldflags': [ '-pthread', ],
         'conditions': [
           [ 'target_arch=="ia32"', {
index 9dd7f74..f4ed6d2 100644 (file)
         '_REENTRANT',
       ],
 
+      'cflags!': [
+        '-ansi'
+      ],
+
       'conditions': [
         ['OS=="win"', {
           'defines': [