diff options
author | jhale <jhale@FreeBSD.org> | 2012-11-09 09:13:50 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2012-11-09 09:13:50 +0800 |
commit | 03f15cbbcd7b4997f90a5c2dd61ecc0c2559a128 (patch) | |
tree | 562062ad214febfa6d7e4a144595225202afb05e /www | |
parent | afee49777e64addab4e93855b36fde05ce60711b (diff) | |
download | freebsd-ports-gnome-03f15cbbcd7b4997f90a5c2dd61ecc0c2559a128.tar.gz freebsd-ports-gnome-03f15cbbcd7b4997f90a5c2dd61ecc0c2559a128.tar.zst freebsd-ports-gnome-03f15cbbcd7b4997f90a5c2dd61ecc0c2559a128.zip |
- Fix build with base gcc
Reported by: pointyhat via beat
Approved by: portmgr (implicit)
makc, avilla (mentors, implicit)
Obtained from: https://github.com/joyent/node/issues/4186
Feature safe: yes
Diffstat (limited to 'www')
-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__'], |