build: avoid -Wno-old-style-declaration with gcc 4.2
Fixes the build on FreeBSD <= 9 with the default compiler. Fixes #4186.
This commit is contained in:
parent
4de274cbee
commit
f8999da514
13
deps/openssl/openssl.gyp
vendored
13
deps/openssl/openssl.gyp
vendored
@ -3,6 +3,11 @@
|
|||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
{
|
{
|
||||||
|
'variables': {
|
||||||
|
'is_clang': 0,
|
||||||
|
'gcc_version': 0,
|
||||||
|
},
|
||||||
|
|
||||||
'targets': [
|
'targets': [
|
||||||
{
|
{
|
||||||
'target_name': 'openssl',
|
'target_name': 'openssl',
|
||||||
@ -674,10 +679,10 @@
|
|||||||
'OPENSSLDIR="/etc/ssl"',
|
'OPENSSLDIR="/etc/ssl"',
|
||||||
'TERMIOS',
|
'TERMIOS',
|
||||||
],
|
],
|
||||||
'cflags': [
|
'cflags': ['-Wno-missing-field-initializers'],
|
||||||
'-Wno-missing-field-initializers',
|
}],
|
||||||
'-Wno-old-style-declaration',
|
['is_clang==1 or gcc_version>=43', {
|
||||||
],
|
'cflags': ['-Wno-old-style-declaration'],
|
||||||
}],
|
}],
|
||||||
['OS=="solaris"', {
|
['OS=="solaris"', {
|
||||||
'defines': ['__EXTENSIONS__'],
|
'defines': ['__EXTENSIONS__'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user