Browse Source

build: avoid -Wno-old-style-declaration with gcc 4.2

Fixes the build on FreeBSD <= 9 with the default compiler.

Fixes #4186.
v0.9.4-release
Ben Noordhuis 12 years ago
parent
commit
f8999da514
  1. 13
      deps/openssl/openssl.gyp

13
deps/openssl/openssl.gyp

@ -3,6 +3,11 @@
# found in the LICENSE file.
{
'variables': {
'is_clang': 0,
'gcc_version': 0,
},
'targets': [
{
'target_name': 'openssl',
@ -674,10 +679,10 @@
'OPENSSLDIR="/etc/ssl"',
'TERMIOS',
],
'cflags': [
'-Wno-missing-field-initializers',
'-Wno-old-style-declaration',
],
'cflags': ['-Wno-missing-field-initializers'],
}],
['is_clang==1 or gcc_version>=43', {
'cflags': ['-Wno-old-style-declaration'],
}],
['OS=="solaris"', {
'defines': ['__EXTENSIONS__'],

Loading…
Cancel
Save