diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2012-11-10 13:36:36 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2012-11-10 13:36:36 +0000 |
commit | 69c697e81459b844d25247362370e3b6848616f5 (patch) | |
tree | 6e5f27485b55e4643f5f33dcdce3a6ac0ca671a3 | |
parent | 4c4d6747d78c0127295a71bb7866dd4c0b5b8f4f (diff) | |
download | ports-69c697e81459b844d25247362370e3b6848616f5.tar.gz ports-69c697e81459b844d25247362370e3b6848616f5.zip |
MFH r307220
- Fix build with base gcc
Reported by: pointyhat via beat
Approved by: portmgr (tabthorpe)
makc, avilla (mentors, implicit)
Obtained from: https://github.com/joyent/node/issues/4186
Feature safe: yes
Notes
Notes:
svn path=/branches/RELENG_9_1_0/; revision=307277
-rw-r--r-- | www/node-devel/files/patch-deps__openssl__openssl.gyp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/node-devel/files/patch-deps__openssl__openssl.gyp b/www/node-devel/files/patch-deps__openssl__openssl.gyp new file mode 100644 index 000000000000..bf93d0a9987e --- /dev/null +++ b/www/node-devel/files/patch-deps__openssl__openssl.gyp @@ -0,0 +1,29 @@ +--- ./deps/openssl/openssl.gyp.orig 2012-10-24 12:21:44.000000000 -0400 ++++ ./deps/openssl/openssl.gyp 2012-11-08 19:57:39.000000000 -0500 +@@ -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__'], |